Files
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.
| Parameter | Type | Default | Description |
|---|
map | dynamic | — | map value consumed by this operation. |
faceIndex | dynamic | — | Zero-based index of face. |
images | dynamic | — | images value consumed by this operation. |
entityFrame | dynamic | — | entityFrame value consumed by this operation. |
View source
# buildSurfaces
function buildSurfaces(map, images, entityFrame)
Build surfaces.
| Parameter | Type | Default | Description |
|---|
map | dynamic | — | map value consumed by this operation. |
images | dynamic | — | images value consumed by this operation. |
entityFrame | dynamic | — | entityFrame value consumed by this operation. |
View source
# faceVertexPosition
function faceVertexPosition(map, face, edgeOffset)
Return the face vertex position.
| Parameter | Type | Default | Description |
|---|
map | dynamic | — | map value consumed by this operation. |
face | dynamic | — | face value consumed by this operation. |
edgeOffset | dynamic | — | edgeOffset value consumed by this operation. |
View source
# lightMapCount
function lightMapCount(styles)
Map light count.
| Parameter | Type | Default | Description |
|---|
styles | dynamic | — | styles value consumed by this operation. |
View source
# projected
function projected(position, vector)
Return the projected value.
| Parameter | Type | Default | Description |
|---|
position | dynamic | — | position value consumed by this operation. |
vector | dynamic | — | vector value consumed by this operation. |
View source
# surfaceExtents
function surfaceExtents(map, face, texInfo)
Return the surface extents value.
| Parameter | Type | Default | Description |
|---|
map | dynamic | — | map value consumed by this operation. |
face | dynamic | — | face value consumed by this operation. |
texInfo | dynamic | — | texInfo value consumed by this operation. |
View source