MiniQuake2

src/miniquake2/renderer/classic/special.ml

Provides miniquake2 renderer classic special facilities for this project.

Package
miniquake2.renderer.classic.special
Reachable
Yes

Imports

Declarations

classicSpecialBaseTexture

inline function classicSpecialBaseTexture(draw, time)

Return the classic special base texture value.

ParameterTypeDefaultDescription
drawdynamic—draw value consumed by this operation.
timedynamic—time value consumed by this operation.

View source

classicSpecialBaseTextureFrame

inline function classicSpecialBaseTextureFrame(draw, frame)

Resolve an animated texture from the owning entity frame. World callers use time*2; inline brush entities pass their server-controlled entity.frame.

ParameterTypeDefaultDescription
drawdynamic—draw value consumed by this operation.
framedynamic—frame value consumed by this operation.

View source

classicSpecialBounds

function classicSpecialBounds(positions)

Return the classic special bounds.

ParameterTypeDefaultDescription
positionsdynamic—positions value consumed by this operation.

View source

classicSpecialDistanceSquared

function classicSpecialDistanceSquared(draw, origin)

Return the classic special distance squared value.

ParameterTypeDefaultDescription
drawdynamic—draw value consumed by this operation.
origindynamic—origin value consumed by this operation.

View source

classicSpecialDrawVertices

function classicSpecialDrawVertices(surface)

Draw classic special vertices.

ParameterTypeDefaultDescription
surfacedynamic—surface value consumed by this operation.

View source

classicSpecialFan

function classicSpecialFan(surface, positions)

Return the classic special fan value.

ParameterTypeDefaultDescription
surfacedynamic—surface value consumed by this operation.
positionsdynamic—positions value consumed by this operation.

View source

classicSpecialFlowScroll

function classicSpecialFlowScroll(time)

Return the classic special flow scroll value.

ParameterTypeDefaultDescription
timedynamic—time value consumed by this operation.

View source

classicSpecialInterpolate

function classicSpecialInterpolate(first, second, fraction)

Interpolate classic special.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.
fractiondynamic—fraction value consumed by this operation.

View source

classicSpecialPassPlan

function classicSpecialPassPlan(draws, frame)

Return the classic special pass plan value.

ParameterTypeDefaultDescription
drawsdynamic—draws value consumed by this operation.
framedynamic—frame value consumed by this operation.

View source

classicSpecialPassPlanOrigin

function classicSpecialPassPlanOrigin(draws, viewOrigin)

Return the classic special pass plan origin.

ParameterTypeDefaultDescription
drawsdynamic—draws value consumed by this operation.
viewOrigindynamic—viewOrigin value consumed by this operation.

View source

classicSpecialPassPlanOriginPrefix

function classicSpecialPassPlanOriginPrefix(draws, drawCount, viewOrigin)

Return the classic special pass plan origin.

ParameterTypeDefaultDescription
drawsdynamic—draws value consumed by this operation.
drawCountdynamic—Number of draw to process.
viewOrigindynamic—viewOrigin value consumed by this operation.

View source

classicSpecialPassPlanOriginPrefixInto

function classicSpecialPassPlanOriginPrefixInto(draws, drawCount, viewOrigin, scratch)

Split a visible prefix into caller-owned capacity arrays without allocation.

ParameterTypeDefaultDescription
drawsdynamic—draws value consumed by this operation.
drawCountdynamic—Number of draw to process.
viewOrigindynamic—viewOrigin value consumed by this operation.
scratchdynamic—scratch value consumed by this operation.

View source

classicSpecialPassSignature

function classicSpecialPassSignature(plan)

Return the classic special pass signature value.

ParameterTypeDefaultDescription
plandynamic—plan value consumed by this operation.

View source

classicSpecialPositionAxis

function classicSpecialPositionAxis(position, axis)

Return the classic special position axis value.

ParameterTypeDefaultDescription
positiondynamic—position value consumed by this operation.
axisdynamic—axis value consumed by this operation.

View source

classicSpecialSortTransparent

function classicSpecialSortTransparent(draws, origin)

Sort classic special transparent.

ParameterTypeDefaultDescription
drawsdynamic—draws value consumed by this operation.
origindynamic—origin value consumed by this operation.

View source

classicSpecialSplitPolygon

function classicSpecialSplitPolygon(positions, axis, split)

Split classic special polygon.

ParameterTypeDefaultDescription
positionsdynamic—positions value consumed by this operation.
axisdynamic—axis value consumed by this operation.
splitdynamic—split value consumed by this operation.

View source

classicSpecialSubdivide

function classicSpecialSubdivide(surface, positions)

Return the classic special subdivide value.

ParameterTypeDefaultDescription
surfacedynamic—surface value consumed by this operation.
positionsdynamic—positions value consumed by this operation.

View source

classicSpecialSurfaceVertex

function classicSpecialSurfaceVertex(surface, position)

Return the classic special surface vertex value.

ParameterTypeDefaultDescription
surfacedynamic—surface value consumed by this operation.
positiondynamic—position value consumed by this operation.

View source

classicSpecialTextureCoordinates

function classicSpecialTextureCoordinates(draw, vertex, time)

Return the classic special texture coordinates value.

ParameterTypeDefaultDescription
drawdynamic—draw value consumed by this operation.
vertexdynamic—vertex value consumed by this operation.
timedynamic—time value consumed by this operation.

View source

classicSpecialTextureCoordinatesInto

function classicSpecialTextureCoordinatesInto(output, draw, vertex, time)

Write special coordinates into caller-owned scratch storage for the hot per-vertex renderer path.

ParameterTypeDefaultDescription
outputdynamic—Output collection or buffer populated by the operation.
drawdynamic—draw value consumed by this operation.
vertexdynamic—vertex value consumed by this operation.
timedynamic—time value consumed by this operation.

View source

classicSpecialTransparentBefore

function classicSpecialTransparentBefore(candidate, previous, origin)

Return the classic special transparent before value.

ParameterTypeDefaultDescription
candidatedynamic—candidate value consumed by this operation.
previousdynamic—previous value consumed by this operation.
origindynamic—origin value consumed by this operation.

View source

classicSpecialTriangleVertices

function classicSpecialTriangleVertices(surface)

Return the classic special triangle vertices value.

ParameterTypeDefaultDescription
surfacedynamic—surface value consumed by this operation.

View source

classicSpecialWarpSine

function classicSpecialWarpSine(value)

Return the classic special warp sine value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

classicSpecialWarpVertices

function classicSpecialWarpVertices(surface)

Return the classic special warp vertices value.

ParameterTypeDefaultDescription
surfacedynamic—surface value consumed by this operation.

View source

classicSpecialWaterScroll

function classicSpecialWaterScroll(time)

Return the classic special water scroll value.

ParameterTypeDefaultDescription
timedynamic—time value consumed by this operation.

View source

createClassicSpecialPassScratch

function createClassicSpecialPassScratch(capacity)

Create pass arrays once for a retained world or inline brush model.

ParameterTypeDefaultDescription
capacitydynamic—capacity value consumed by this operation.

View source

SPECIAL_PI2

const SPECIAL_PI2 = 6.28318530717959

Defines the special pi2 constant used by the miniquake2 renderer classic special module.

View source

SPECIAL_SUBDIVIDE_MARGIN

const SPECIAL_SUBDIVIDE_MARGIN = 8.

Defines the special subdivide margin constant used by the miniquake2 renderer classic special module.

View source

SPECIAL_SUBDIVIDE_SIZE

const SPECIAL_SUBDIVIDE_SIZE = 64.

Defines the special subdivide size constant used by the miniquake2 renderer classic special module.

View source

SPECIAL_TURB_SCALE

const SPECIAL_TURB_SCALE = 40.7436654315252

Defines the special turb scale constant used by the miniquake2 renderer classic special module.

View source