MiniQuake2

src/miniquake2/renderer/classic/surfaces.ml

Provides miniquake2 renderer classic surfaces facilities for this project.

Package
miniquake2.renderer.classic.surfaces
Reachable
Yes

Imports

Declarations

buildSurface

function buildSurface(map, faceIndex, images, entityFrame)

Build surface.

ParameterTypeDefaultDescription
mapdynamic—map value consumed by this operation.
faceIndexdynamic—Zero-based index of face.
imagesdynamic—images value consumed by this operation.
entityFramedynamic—entityFrame value consumed by this operation.

View source

buildSurfaces

function buildSurfaces(map, images, entityFrame)

Build surfaces.

ParameterTypeDefaultDescription
mapdynamic—map value consumed by this operation.
imagesdynamic—images value consumed by this operation.
entityFramedynamic—entityFrame value consumed by this operation.

View source

faceVertexPosition

function faceVertexPosition(map, face, edgeOffset)

Return the face vertex position.

ParameterTypeDefaultDescription
mapdynamic—map value consumed by this operation.
facedynamic—face value consumed by this operation.
edgeOffsetdynamic—edgeOffset value consumed by this operation.

View source

lightMapCount

function lightMapCount(styles)

Map light count.

ParameterTypeDefaultDescription
stylesdynamic—styles value consumed by this operation.

View source

projected

function projected(position, vector)

Return the projected value.

ParameterTypeDefaultDescription
positiondynamic—position value consumed by this operation.
vectordynamic—vector value consumed by this operation.

View source

surfaceExtents

function surfaceExtents(map, face, texInfo)

Return the surface extents value.

ParameterTypeDefaultDescription
mapdynamic—map value consumed by this operation.
facedynamic—face value consumed by this operation.
texInfodynamic—texInfo value consumed by this operation.

View source