MiniQuake2

src/miniquake2/renderer/recording.ml

Provides miniquake2 renderer recording facilities for this project.

Package
miniquake2.renderer.recording
Reachable
Yes

Imports

Declarations

clearCommands

function clearCommands(binding)

Clear commands.

ParameterTypeDefaultDescription
bindingdynamic—binding value consumed by this operation.

View source

commandTrace

function commandTrace(binding)

Trace command.

ParameterTypeDefaultDescription
bindingdynamic—binding value consumed by this operation.

View source

createNullRenderer

function createNullRenderer()

Create null renderer.

View source

createRecordingRenderer

function createRecordingRenderer()

Create recording renderer.

View source

createState

function createState(mode, imports)

Creates state for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
modedynamic—Mode selecting the requested behavior.
importsdynamic—imports value consumed by this operation.

View source

findResource

function findResource(resources, name, generation)

Find resource.

ParameterTypeDefaultDescription
resourcesdynamic—resources value consumed by this operation.
namedynamic—Name of the affected item.
generationdynamic—generation value consumed by this operation.

View source

getRefAPI

function getRefAPI(imports, mode)

Internal equivalent of GetRefAPI_t. It binds a validated refimport_t table to the renderer while returning both the export table and inspectable state.

ParameterTypeDefaultDescription
importsdynamic—imports value consumed by this operation.
modedynamic—Mode selecting the requested behavior.

View source

isHandleCurrent

function isHandleCurrent(binding, handle)

Report whether is handle current.

ParameterTypeDefaultDescription
bindingdynamic—binding value consumed by this operation.
handledynamic—Native or runtime handle used by the operation.

View source

makeExports

function makeExports(state)

Build a complete Renderer API v3 recorder around one shared lifecycle state. Nested callbacks deliberately retain that state instead of copying resources.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.

View source

appActivate

function appActivate(activate)

Performs the appActivate operation for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
activatedynamic—activate value consumed by this operation.

View source

beginFrame

function beginFrame(cameraSeparation)

Performs the beginFrame operation for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
cameraSeparationdynamic—cameraSeparation value consumed by this operation.

View source

beginRegistration

function beginRegistration(mapName)

Performs the beginRegistration operation for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.

View source

cinematicSetPalette

function cinematicSetPalette(palette)

Performs the cinematicSetPalette operation for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
palettedynamic—palette value consumed by this operation.

View source

drawChar

function drawChar(x, y, character)

Draws char through the miniquake2 renderer recording rendering path.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
characterdynamic—character value consumed by this operation.

View source

drawFadeScreen

function drawFadeScreen()

Draws fade screen through the miniquake2 renderer recording rendering path.

View source

drawFill

function drawFill(x, y, width, height, color)

Draws fill through the miniquake2 renderer recording rendering path.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
widthdynamic—Width in the coordinate or storage units used by the caller.
heightdynamic—Height in the coordinate or storage units used by the caller.
colordynamic—color value consumed by this operation.

View source

drawGetPicSize

function drawGetPicSize(name)

Draws get pic size through the miniquake2 renderer recording rendering path.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

drawPic

function drawPic(x, y, name)

Draws pic through the miniquake2 renderer recording rendering path.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
namedynamic—Name of the affected item.

View source

drawStretchPic

function drawStretchPic(x, y, width, height, name)

Draws stretch pic through the miniquake2 renderer recording rendering path.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
widthdynamic—Width in the coordinate or storage units used by the caller.
heightdynamic—Height in the coordinate or storage units used by the caller.
namedynamic—Name of the affected item.

View source

drawStretchRaw

function drawStretchRaw(x, y, width, height, columns, rows, data)

Draws stretch raw through the miniquake2 renderer recording rendering path.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
widthdynamic—Width in the coordinate or storage units used by the caller.
heightdynamic—Height in the coordinate or storage units used by the caller.
columnsdynamic—columns value consumed by this operation.
rowsdynamic—rows value consumed by this operation.
datadynamic—Input data consumed by the operation.

View source

drawTileClear

function drawTileClear(x, y, width, height, name)

Draws tile clear through the miniquake2 renderer recording rendering path.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
widthdynamic—Width in the coordinate or storage units used by the caller.
heightdynamic—Height in the coordinate or storage units used by the caller.
namedynamic—Name of the affected item.

View source

endFrame

function endFrame()

Performs the endFrame operation for the miniquake2 renderer recording module.

View source

endRegistration

function endRegistration()

Performs the endRegistration operation for the miniquake2 renderer recording module.

View source

registerModel

function registerModel(name)

Performs the registerModel operation for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

registerPic

function registerPic(name)

Performs the registerPic operation for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

registerSkin

function registerSkin(name)

Performs the registerSkin operation for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

rendererInit

function rendererInit(hinstance, wndproc)

Performs the rendererInit operation for the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
hinstancedynamic—hinstance value consumed by this operation.
wndprocdynamic—wndproc value consumed by this operation.

View source

rendererShutdown

function rendererShutdown()

Performs the rendererShutdown operation for the miniquake2 renderer recording module.

View source

renderFrame

function renderFrame(frame)

Renders frame through the miniquake2 renderer recording rendering path.

ParameterTypeDefaultDescription
framedynamic—frame value consumed by this operation.

View source

setSky

function setSky(name, rotate, axis)

Updates sky maintained by the miniquake2 renderer recording module.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.
rotatedynamic—rotate value consumed by this operation.
axisdynamic—axis value consumed by this operation.

View source

record

function record(state, operation, arguments)

Record state.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
operationdynamic—operation value consumed by this operation.
argumentsdynamic—arguments value consumed by this operation.

View source

registerResource

function registerResource(state, kind, name)

Register resource.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
kinddynamic—kind value consumed by this operation.
namedynamic—Name of the affected item.

View source

miniquake2.renderer.recording.RenderCommand struct

miniquake2.renderer.recording.RendererState struct

requireInitialized

function requireInitialized(state, operation)

Require initialized.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
operationdynamic—operation value consumed by this operation.

View source

resourceOperation

function resourceOperation(kind)

Return the resource operation value.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.

View source