# frameIndex
function frameIndex(model, requestedFrame)Return the frame index.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
requestedFrame | dynamic | — | requestedFrame value consumed by this operation. |
src/miniquake2/renderer/classic/sprites.mlProvides miniquake2 renderer classic sprites facilities for this project.
miniquake2/renderer/classic/types.ml as rclassictypes → src/miniquake2/renderer/classic/types.mlminiquake2/renderer/classic/vector.ml as rclassicvector → src/miniquake2/renderer/classic/vector.mlminiquake2/renderer/constants.ml as rc → src/miniquake2/renderer/constants.mlfunction frameIndex(model, requestedFrame)Return the frame index.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
requestedFrame | dynamic | — | requestedFrame value consumed by this operation. |
function prepare(model, entity, cameraUp, cameraRight)Prepare state.
| Parameter | Type | Default | Description |
|---|---|---|---|
model | dynamic | — | model value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
cameraUp | dynamic | — | cameraUp value consumed by this operation. |
cameraRight | dynamic | — | cameraRight value consumed by this operation. |
function spriteVertex(position, s, t)Return the sprite vertex value.
| Parameter | Type | Default | Description |
|---|---|---|---|
position | dynamic | — | position value consumed by this operation. |
s | dynamic | — | s value consumed by this operation. |
t | dynamic | — | t value consumed by this operation. |