Files
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.
| Parameter | Type | Default | Description |
|---|
draw | dynamic | — | draw value consumed by this operation. |
time | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
draw | dynamic | — | draw value consumed by this operation. |
frame | dynamic | — | frame value consumed by this operation. |
View source
# classicSpecialBounds
function classicSpecialBounds(positions)
Return the classic special bounds.
| Parameter | Type | Default | Description |
|---|
positions | dynamic | — | positions value consumed by this operation. |
View source
# classicSpecialDistanceSquared
function classicSpecialDistanceSquared(draw, origin)
Return the classic special distance squared value.
| Parameter | Type | Default | Description |
|---|
draw | dynamic | — | draw value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
View source
# classicSpecialDrawVertices
function classicSpecialDrawVertices(surface)
Draw classic special vertices.
| Parameter | Type | Default | Description |
|---|
surface | dynamic | — | surface value consumed by this operation. |
View source
# classicSpecialFan
function classicSpecialFan(surface, positions)
Return the classic special fan value.
| Parameter | Type | Default | Description |
|---|
surface | dynamic | — | surface value consumed by this operation. |
positions | dynamic | — | positions value consumed by this operation. |
View source
# classicSpecialFlowScroll
function classicSpecialFlowScroll(time)
Return the classic special flow scroll value.
| Parameter | Type | Default | Description |
|---|
time | dynamic | — | time value consumed by this operation. |
View source
# classicSpecialInterpolate
function classicSpecialInterpolate(first, second, fraction)
Interpolate classic special.
| Parameter | Type | Default | Description |
|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
fraction | dynamic | — | fraction value consumed by this operation. |
View source
# classicSpecialPassPlan
function classicSpecialPassPlan(draws, frame)
Return the classic special pass plan value.
| Parameter | Type | Default | Description |
|---|
draws | dynamic | — | draws value consumed by this operation. |
frame | dynamic | — | frame value consumed by this operation. |
View source
# classicSpecialPassPlanOrigin
function classicSpecialPassPlanOrigin(draws, viewOrigin)
Return the classic special pass plan origin.
| Parameter | Type | Default | Description |
|---|
draws | dynamic | — | draws value consumed by this operation. |
viewOrigin | dynamic | — | viewOrigin value consumed by this operation. |
View source
# classicSpecialPassPlanOriginPrefix
function classicSpecialPassPlanOriginPrefix(draws, drawCount, viewOrigin)
Return the classic special pass plan origin.
| Parameter | Type | Default | Description |
|---|
draws | dynamic | — | draws value consumed by this operation. |
drawCount | dynamic | — | Number of draw to process. |
viewOrigin | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
draws | dynamic | — | draws value consumed by this operation. |
drawCount | dynamic | — | Number of draw to process. |
viewOrigin | dynamic | — | viewOrigin value consumed by this operation. |
scratch | dynamic | — | scratch value consumed by this operation. |
View source
# classicSpecialPassSignature
function classicSpecialPassSignature(plan)
Return the classic special pass signature value.
| Parameter | Type | Default | Description |
|---|
plan | dynamic | — | plan value consumed by this operation. |
View source
# classicSpecialPositionAxis
function classicSpecialPositionAxis(position, axis)
Return the classic special position axis value.
| Parameter | Type | Default | Description |
|---|
position | dynamic | — | position value consumed by this operation. |
axis | dynamic | — | axis value consumed by this operation. |
View source
# classicSpecialSortTransparent
function classicSpecialSortTransparent(draws, origin)
Sort classic special transparent.
| Parameter | Type | Default | Description |
|---|
draws | dynamic | — | draws value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
View source
# classicSpecialSplitPolygon
function classicSpecialSplitPolygon(positions, axis, split)
Split classic special polygon.
| Parameter | Type | Default | Description |
|---|
positions | dynamic | — | positions value consumed by this operation. |
axis | dynamic | — | axis value consumed by this operation. |
split | dynamic | — | split value consumed by this operation. |
View source
# classicSpecialSubdivide
function classicSpecialSubdivide(surface, positions)
Return the classic special subdivide value.
| Parameter | Type | Default | Description |
|---|
surface | dynamic | — | surface value consumed by this operation. |
positions | dynamic | — | positions value consumed by this operation. |
View source
# classicSpecialSurfaceVertex
function classicSpecialSurfaceVertex(surface, position)
Return the classic special surface vertex value.
| Parameter | Type | Default | Description |
|---|
surface | dynamic | — | surface value consumed by this operation. |
position | dynamic | — | position value consumed by this operation. |
View source
# classicSpecialTextureCoordinates
function classicSpecialTextureCoordinates(draw, vertex, time)
Return the classic special texture coordinates value.
| Parameter | Type | Default | Description |
|---|
draw | dynamic | — | draw value consumed by this operation. |
vertex | dynamic | — | vertex value consumed by this operation. |
time | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
output | dynamic | — | Output collection or buffer populated by the operation. |
draw | dynamic | — | draw value consumed by this operation. |
vertex | dynamic | — | vertex value consumed by this operation. |
time | dynamic | — | time value consumed by this operation. |
View source
# classicSpecialTransparentBefore
function classicSpecialTransparentBefore(candidate, previous, origin)
Return the classic special transparent before value.
| Parameter | Type | Default | Description |
|---|
candidate | dynamic | — | candidate value consumed by this operation. |
previous | dynamic | — | previous value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
View source
# classicSpecialTriangleVertices
function classicSpecialTriangleVertices(surface)
Return the classic special triangle vertices value.
| Parameter | Type | Default | Description |
|---|
surface | dynamic | — | surface value consumed by this operation. |
View source
# classicSpecialWarpSine
function classicSpecialWarpSine(value)
Return the classic special warp sine value.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# classicSpecialWarpVertices
function classicSpecialWarpVertices(surface)
Return the classic special warp vertices value.
| Parameter | Type | Default | Description |
|---|
surface | dynamic | — | surface value consumed by this operation. |
View source
# classicSpecialWaterScroll
function classicSpecialWaterScroll(time)
Return the classic special water scroll value.
| Parameter | Type | Default | Description |
|---|
time | dynamic | — | time value consumed by this operation. |
View source
# createClassicSpecialPassScratch
function createClassicSpecialPassScratch(capacity)
Create pass arrays once for a retained world or inline brush model.
| Parameter | Type | Default | Description |
|---|
capacity | dynamic | — | 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