MiniQuake

src/miniquake/render/gl_test.ml

Package
miniquake.render.gl_test
Reachable
No

Imports

Declarations

createState

function createState()

Creates state for `miniquake.render.gl_test`.

View source

DrawPuff

function DrawPuff(puff)

Render puff.

ParameterTypeDefaultDescription
puffdynamic—The puff input consumed by `DrawPuff`.

View source

emitVertex

function emitVertex(point, drawNative)

Add vertex to the destination state.

ParameterTypeDefaultDescription
pointdynamic—The point input consumed by `emitVertex`.
drawNativedynamic—The draw native input consumed by `emitVertex`.

View source

emptyPlane

function emptyPlane()

Implements the `emptyPlane` operation for `miniquake.render.gl_test` (empty plane).

View source

emptyPuff

function emptyPuff()

Implements the `emptyPuff` operation for `miniquake.render.gl_test` (empty puff).

View source

miniquake.render.gl_test.GlTestState struct

HitPlane

function HitPlane(start, finish)

Implements the `HitPlane` operation for `miniquake.render.gl_test` (hit plane).

ParameterTypeDefaultDescription
startdynamic—The start input consumed by `HitPlane`.
finishdynamic—The finish input consumed by `HitPlane`.

View source

MAX_PUFFS

const MAX_PUFFS = 64

Defines the max puffs value used by `miniquake.render.gl_test`.

View source

puffPoints

function puffPoints(puff)

Implements the `puffPoints` operation for `miniquake.render.gl_test` (puff points).

ParameterTypeDefaultDescription
puffdynamic—The puff input consumed by `puffPoints`.

View source

Test_CommandTrace

function Test_CommandTrace()

Verify command trace against the expected Quake behavior.

View source

Test_Configure

function Test_Configure(worldMap, viewOrigin, frameTime, drawNative)

Verify configure against the expected Quake behavior.

ParameterTypeDefaultDescription
worldMapdynamic—The world map input consumed by `Test_Configure`.
viewOrigindynamic—The view origin input consumed by `Test_Configure`.
frameTimedynamic—Time value used by the operation.
drawNativedynamic—The draw native input consumed by `Test_Configure`.

View source

Test_Draw

function Test_Draw()

Verify draw against the expected Quake behavior.

View source

Test_Init

function Test_Init()

Verify init against the expected Quake behavior.

View source

Test_Spawn

function Test_Spawn(origin)

Verify spawn against the expected Quake behavior.

ParameterTypeDefaultDescription
origindynamic—World-space origin of the operation.

View source

Test_State

function Test_State()

Verify state against the expected Quake behavior.

View source

Test_UseState

function Test_UseState(state)

Verify use state against the expected Quake behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.render.gl_test` state used by `Test_UseState`.

View source

miniquake.render.gl_test.TestPuff struct

testState

testState

Tracks the module-level renderer test state owned by `miniquake.render.gl_test`.

View source

zeroVector

function zeroVector()

Implements the `zeroVector` operation for `miniquake.render.gl_test` (zero vector).

View source