# clearCommands
function clearCommands(binding)Clear commands.
| Parameter | Type | Default | Description |
|---|---|---|---|
binding | dynamic | — | binding value consumed by this operation. |
src/miniquake2/renderer/recording.mlProvides miniquake2 renderer recording facilities for this project.
miniquake2/qcommon/types.ml as qtypes → src/miniquake2/qcommon/types.mlminiquake2/renderer/constants.ml as rc → src/miniquake2/renderer/constants.mlminiquake2/renderer/types.ml as rt → src/miniquake2/renderer/types.mlminiquake2/renderer/validation.ml as validation → src/miniquake2/renderer/validation.mlfunction clearCommands(binding)Clear commands.
| Parameter | Type | Default | Description |
|---|---|---|---|
binding | dynamic | — | binding value consumed by this operation. |
function commandTrace(binding)Trace command.
| Parameter | Type | Default | Description |
|---|---|---|---|
binding | dynamic | — | binding value consumed by this operation. |
function createNullRenderer()Create null renderer.
function createRecordingRenderer()Create recording renderer.
function createState(mode, imports)Creates state for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | dynamic | — | Mode selecting the requested behavior. |
imports | dynamic | — | imports value consumed by this operation. |
function findResource(resources, name, generation)Find resource.
| Parameter | Type | Default | Description |
|---|---|---|---|
resources | dynamic | — | resources value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
generation | dynamic | — | generation value consumed by this operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
imports | dynamic | — | imports value consumed by this operation. |
mode | dynamic | — | Mode selecting the requested behavior. |
function isHandleCurrent(binding, handle)Report whether is handle current.
| Parameter | Type | Default | Description |
|---|---|---|---|
binding | dynamic | — | binding value consumed by this operation. |
handle | dynamic | — | Native or runtime handle used by the operation. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
function appActivate(activate)Performs the appActivate operation for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
activate | dynamic | — | activate value consumed by this operation. |
function beginFrame(cameraSeparation)Performs the beginFrame operation for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
cameraSeparation | dynamic | — | cameraSeparation value consumed by this operation. |
function beginRegistration(mapName)Performs the beginRegistration operation for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
mapName | dynamic | — | mapName value consumed by this operation. |
function cinematicSetPalette(palette)Performs the cinematicSetPalette operation for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
palette | dynamic | — | palette value consumed by this operation. |
function drawChar(x, y, character)Draws char through the miniquake2 renderer recording rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
character | dynamic | — | character value consumed by this operation. |
function drawFadeScreen()Draws fade screen through the miniquake2 renderer recording rendering path.
function drawFill(x, y, width, height, color)Draws fill through the miniquake2 renderer recording rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
width | dynamic | — | Width in the coordinate or storage units used by the caller. |
height | dynamic | — | Height in the coordinate or storage units used by the caller. |
color | dynamic | — | color value consumed by this operation. |
function drawGetPicSize(name)Draws get pic size through the miniquake2 renderer recording rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function drawPic(x, y, name)Draws pic through the miniquake2 renderer recording rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
name | dynamic | — | Name of the affected item. |
function drawStretchPic(x, y, width, height, name)Draws stretch pic through the miniquake2 renderer recording rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
width | dynamic | — | Width in the coordinate or storage units used by the caller. |
height | dynamic | — | Height in the coordinate or storage units used by the caller. |
name | dynamic | — | Name of the affected item. |
function drawStretchRaw(x, y, width, height, columns, rows, data)Draws stretch raw through the miniquake2 renderer recording rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
width | dynamic | — | Width in the coordinate or storage units used by the caller. |
height | dynamic | — | Height in the coordinate or storage units used by the caller. |
columns | dynamic | — | columns value consumed by this operation. |
rows | dynamic | — | rows value consumed by this operation. |
data | dynamic | — | Input data consumed by the operation. |
function drawTileClear(x, y, width, height, name)Draws tile clear through the miniquake2 renderer recording rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
width | dynamic | — | Width in the coordinate or storage units used by the caller. |
height | dynamic | — | Height in the coordinate or storage units used by the caller. |
name | dynamic | — | Name of the affected item. |
function endFrame()Performs the endFrame operation for the miniquake2 renderer recording module.
function endRegistration()Performs the endRegistration operation for the miniquake2 renderer recording module.
function registerModel(name)Performs the registerModel operation for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function registerPic(name)Performs the registerPic operation for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function registerSkin(name)Performs the registerSkin operation for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
function rendererInit(hinstance, wndproc)Performs the rendererInit operation for the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
hinstance | dynamic | — | hinstance value consumed by this operation. |
wndproc | dynamic | — | wndproc value consumed by this operation. |
function rendererShutdown()Performs the rendererShutdown operation for the miniquake2 renderer recording module.
function renderFrame(frame)Renders frame through the miniquake2 renderer recording rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
frame | dynamic | — | frame value consumed by this operation. |
function setSky(name, rotate, axis)Updates sky maintained by the miniquake2 renderer recording module.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Name of the affected item. |
rotate | dynamic | — | rotate value consumed by this operation. |
axis | dynamic | — | axis value consumed by this operation. |
function record(state, operation, arguments)Record state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
operation | dynamic | — | operation value consumed by this operation. |
arguments | dynamic | — | arguments value consumed by this operation. |
function registerResource(state, kind, name)Register resource.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
kind | dynamic | — | kind value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
miniquake2.renderer.recording.RenderCommand struct
miniquake2.renderer.recording.RendererState struct
function requireInitialized(state, operation)Require initialized.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
operation | dynamic | — | operation value consumed by this operation. |
function resourceOperation(kind)Return the resource operation value.
| Parameter | Type | Default | Description |
|---|---|---|---|
kind | dynamic | — | kind value consumed by this operation. |