# activeTexture
function activeTexture(unit)Report whether active texture holds for the active state.
| Parameter | Type | Default | Description |
|---|---|---|---|
unit | dynamic | — | The unit input consumed by `activeTexture`. |
src/miniquake/render/gl11.mlminiquake/native.ml as native → src/miniquake/native.mlfunction activeTexture(unit)Report whether active texture holds for the active state.
| Parameter | Type | Default | Description |
|---|---|---|---|
unit | dynamic | — | The unit input consumed by `activeTexture`. |
function alphaFunc(functionName, reference)Implements the `alphaFunc` operation for `miniquake.render.gl11` (alpha func).
| Parameter | Type | Default | Description |
|---|---|---|---|
functionName | dynamic | — | Name that identifies the requested value or resource. |
reference | dynamic | — | The reference input consumed by `alphaFunc`. |
function backendName()Return backend name derived from the active module state.
function begin(mode)Initialize state for begin.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | dynamic | — | The mode input consumed by `begin`. |
function bindTexture(texture)Implements the `bindTexture` operation for `miniquake.render.gl11` (bind texture).
| Parameter | Type | Default | Description |
|---|---|---|---|
texture | dynamic | — | Texture resource processed by the operation. |
function bits(value)Return bits derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `bits`. |
function blendFunc(source, destination)Implements the `blendFunc` operation for `miniquake.render.gl11` (blend func).
| Parameter | Type | Default | Description |
|---|---|---|---|
source | dynamic | — | Source value or collection to read. |
destination | dynamic | — | Destination value or collection to update. |
boundTextureNameTracks the module-level bound texture name state owned by `miniquake.render.gl11`.
function clear(mask)Implements the `clear` operation for `miniquake.render.gl11` (clear).
| Parameter | Type | Default | Description |
|---|---|---|---|
mask | dynamic | — | The mask input consumed by `clear`. |
function clearColor(red, green, blue, alpha)Update module state for color.
| Parameter | Type | Default | Description |
|---|---|---|---|
red | dynamic | — | The red input consumed by `clearColor`. |
green | dynamic | — | The green input consumed by `clearColor`. |
blue | dynamic | — | The blue input consumed by `clearColor`. |
alpha | dynamic | — | The alpha input consumed by `clearColor`. |
function clearStaticGeometryCache()Update module state for static geometry cache.
function color(red, green, blue, alpha)Implements the `color` operation for `miniquake.render.gl11` (color).
| Parameter | Type | Default | Description |
|---|---|---|---|
red | dynamic | — | The red input consumed by `color`. |
green | dynamic | — | The green input consumed by `color`. |
blue | dynamic | — | The blue input consumed by `color`. |
alpha | dynamic | — | The alpha input consumed by `color`. |
function colorFloat(red, green, blue, alpha)Implements the `colorFloat` operation for `miniquake.render.gl11` (color float).
| Parameter | Type | Default | Description |
|---|---|---|---|
red | dynamic | — | The red input consumed by `colorFloat`. |
green | dynamic | — | The green input consumed by `colorFloat`. |
blue | dynamic | — | The blue input consumed by `colorFloat`. |
alpha | dynamic | — | The alpha input consumed by `colorFloat`. |
function cullFace(mode)Implements the `cullFace` operation for `miniquake.render.gl11` (cull face).
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | dynamic | — | The mode input consumed by `cullFace`. |
function currentBoundTexture()Return bound texture.
function deleteTexture(texture)Release or remove state for texture.
| Parameter | Type | Default | Description |
|---|---|---|---|
texture | dynamic | — | Texture resource processed by the operation. |
function depthFunc(value)Implements the `depthFunc` operation for `miniquake.render.gl11` (depth func).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `depthFunc`. |
function depthMask(enabled)Implements the `depthMask` operation for `miniquake.render.gl11` (depth mask).
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | Whether the optional behavior is enabled. |
function depthRange(nearValue, farValue)Implements the `depthRange` operation for `miniquake.render.gl11` (depth range).
| Parameter | Type | Default | Description |
|---|---|---|---|
nearValue | dynamic | — | The near value input consumed by `depthRange`. |
farValue | dynamic | — | The far value input consumed by `depthRange`. |
diagnosticTraceTracks the module-level diagnostic trace state owned by `miniquake.render.gl11`.
diagnosticTraceEnabledTracks the module-level diagnostic trace enabled state owned by `miniquake.render.gl11`.
function disable(capability)Implements the `disable` operation for `miniquake.render.gl11` (disable).
| Parameter | Type | Default | Description |
|---|---|---|---|
capability | dynamic | — | The capability input consumed by `disable`. |
function drawBuffer(mode)Render buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | dynamic | — | The mode input consumed by `drawBuffer`. |
function enable(capability)Implements the `enable` operation for `miniquake.render.gl11` (enable).
| Parameter | Type | Default | Description |
|---|---|---|---|
capability | dynamic | — | The capability input consumed by `enable`. |
const ENHANCED_DRAW_NONE = 0Native enhanced-lighting draw classifications. The classic path always uses NONE; the optional renderer uses OVERLAY only for its additive 3-D light pass, so console/HUD/menu rendering cannot inherit a shader.
const ENHANCED_DRAW_OVERLAY = 1Defines the enhanced draw overlay value used by `miniquake.render.gl11`.
function enhancedAvailable()Report whether the active backend can execute the optional per-pixel light pass. Availability is capability based and is deliberately independent of the selected Classic/Enhanced user setting.
function enhancedBeginFrame(lightPacket, byteCount)Upload the compact world-space dynamic-light packet for the current view.
| Parameter | Type | Default | Description |
|---|---|---|---|
lightPacket | dynamic | — | The light packet input consumed by `enhancedBeginFrame`. |
byteCount | dynamic | — | Number of entries or units to process. |
function enhancedConfigure(enabled, shadows, shadowQuality)Configure optional enhanced rendering without changing the selected native backend. Classic remains a zero-cost path when enabled is false.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | Whether the optional behavior is enabled. |
shadows | dynamic | — | The shadows input consumed by `enhancedConfigure`. |
shadowQuality | dynamic | — | The shadow quality input consumed by `enhancedConfigure`. |
function enhancedDrawKind(kind)Select which following geometry is part of the enhanced additive pass.
| Parameter | Type | Default | Description |
|---|---|---|---|
kind | dynamic | — | The kind input consumed by `enhancedDrawKind`. |
function enhancedEndFrame()End enhanced 3-D rendering and force the compatibility program/state back.
function errorCode()Report code and return the corresponding failure status.
function finish()Finalize state for finish.
function finishPrimitive()Finalize state for finish primitive.
function flush()Implements the `flush` operation for `miniquake.render.gl11` (flush).
function frustum(left, right, bottom, top, nearValue, farValue)Implements the `frustum` operation for `miniquake.render.gl11` (frustum).
| Parameter | Type | Default | Description |
|---|---|---|---|
left | dynamic | — | The left input consumed by `frustum`. |
right | dynamic | — | The right input consumed by `frustum`. |
bottom | dynamic | — | The bottom input consumed by `frustum`. |
top | dynamic | — | The top input consumed by `frustum`. |
nearValue | dynamic | — | The near value input consumed by `frustum`. |
farValue | dynamic | — | The far value input consumed by `frustum`. |
function generateTexture()Implements the `generateTexture` operation for `miniquake.render.gl11` (generate texture).
function getString(name)Return string.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
const GL_ALPHA_TEST = 3008Defines the gl alpha test value used by `miniquake.render.gl11`.
const GL_BACK = 1029Defines the gl back value used by `miniquake.render.gl11`.
const GL_BLEND = 3042Defines the gl blend value used by `miniquake.render.gl11`.
const GL_CLAMP = 10496Defines the gl clamp value used by `miniquake.render.gl11`.
const GL_COLOR_BUFFER_BIT = 16384Defines the gl color buffer bit value used by `miniquake.render.gl11`.
const GL_COLOR_INDEX = 6400Defines the gl color index value used by `miniquake.render.gl11`.
const GL_COLOR_INDEX8_EXT = 32997Defines the gl color index8 ext value used by `miniquake.render.gl11`.
const GL_COMBINE = 34160Defines the gl combine value used by `miniquake.render.gl11`.
const GL_COMBINE_RGB = 34161Defines the gl combine rgb value used by `miniquake.render.gl11`.
const GL_CULL_FACE = 2884Defines the gl cull face value used by `miniquake.render.gl11`.
const GL_DEPTH_BUFFER_BIT = 256Defines the gl depth buffer bit value used by `miniquake.render.gl11`.
const GL_DEPTH_TEST = 2929Defines the gl depth test value used by `miniquake.render.gl11`.
const GL_DST_COLOR = 774Defines the gl dst color value used by `miniquake.render.gl11`.
const GL_EXTENSIONS = 7939Defines the gl extensions value used by `miniquake.render.gl11`.
const GL_FILL = 6914Defines the gl fill value used by `miniquake.render.gl11`.
const GL_FLAT = 7424Defines the gl flat value used by `miniquake.render.gl11`.
const GL_FRONT = 1028Defines the gl front value used by `miniquake.render.gl11`.
const GL_FRONT_AND_BACK = 1032Defines the gl front and back value used by `miniquake.render.gl11`.
const GL_GEQUAL = 518Defines the gl gequal value used by `miniquake.render.gl11`.
const GL_GREATER = 516Defines the gl greater value used by `miniquake.render.gl11`.
const GL_LEQUAL = 515Defines the gl lequal value used by `miniquake.render.gl11`.
const GL_LINE = 6913Defines the gl line value used by `miniquake.render.gl11`.
const GL_LINE_LOOP = 2Defines the gl line loop value used by `miniquake.render.gl11`.
const GL_LINE_STRIP = 3Defines the gl line strip value used by `miniquake.render.gl11`.
const GL_LINEAR = 9729Defines the gl linear value used by `miniquake.render.gl11`.
const GL_LINEAR_MIPMAP_LINEAR = 9987Defines the gl linear mipmap linear value used by `miniquake.render.gl11`.
const GL_LINEAR_MIPMAP_NEAREST = 9985Defines the gl linear mipmap nearest value used by `miniquake.render.gl11`.
const GL_LINES = 1Defines the gl lines value used by `miniquake.render.gl11`.
const GL_LUMINANCE = 6409Defines the gl luminance value used by `miniquake.render.gl11`.
const GL_MODELVIEW = 5888Defines the gl modelview value used by `miniquake.render.gl11`.
const GL_MODULATE = 8448Defines the gl modulate value used by `miniquake.render.gl11`.
const GL_NEAREST = 9728Defines the gl nearest value used by `miniquake.render.gl11`.
const GL_NEAREST_MIPMAP_LINEAR = 9986Defines the gl nearest mipmap linear value used by `miniquake.render.gl11`.
const GL_NEAREST_MIPMAP_NEAREST = 9984Defines the gl nearest mipmap nearest value used by `miniquake.render.gl11`.
const GL_ONE = 1Defines the gl one value used by `miniquake.render.gl11`.
const GL_ONE_MINUS_DST_COLOR = 775Defines the gl one minus dst color value used by `miniquake.render.gl11`.
const GL_ONE_MINUS_SRC_ALPHA = 771Defines the gl one minus src alpha value used by `miniquake.render.gl11`.
const GL_ONE_MINUS_SRC_COLOR = 769Defines the gl one minus src color value used by `miniquake.render.gl11`.
const GL_OPERAND0_RGB = 34192Defines the gl operand0 rgb value used by `miniquake.render.gl11`.
const GL_OPERAND1_RGB = 34193Defines the gl operand1 rgb value used by `miniquake.render.gl11`.
const GL_POINTS = 0Defines the gl points value used by `miniquake.render.gl11`.
const GL_POLYGON = 9Defines the gl polygon value used by `miniquake.render.gl11`.
const GL_PREVIOUS = 34168Defines the gl previous value used by `miniquake.render.gl11`.
const GL_PROJECTION = 5889Defines the gl projection value used by `miniquake.render.gl11`.
const GL_QUADS = 7Defines the gl quads value used by `miniquake.render.gl11`.
const GL_RENDERER = 7937Defines the gl renderer value used by `miniquake.render.gl11`.
const GL_REPEAT = 10497Defines the gl repeat value used by `miniquake.render.gl11`.
const GL_REPLACE = 7681Defines the gl replace value used by `miniquake.render.gl11`.
const GL_RGB = 6407Defines the gl rgb value used by `miniquake.render.gl11`.
const GL_RGBA = 6408Defines the gl rgba value used by `miniquake.render.gl11`.
const GL_SMOOTH = 7425Defines the gl smooth value used by `miniquake.render.gl11`.
const GL_SOURCE0_RGB = 34176Defines the gl source0 rgb value used by `miniquake.render.gl11`.
const GL_SOURCE1_RGB = 34177Defines the gl source1 rgb value used by `miniquake.render.gl11`.
const GL_SRC_ALPHA = 770Defines the gl src alpha value used by `miniquake.render.gl11`.
const GL_SRC_COLOR = 768Defines the gl src color value used by `miniquake.render.gl11`.
const GL_TEXTURE = 5890Defines the gl texture value used by `miniquake.render.gl11`.
const GL_TEXTURE0_SGIS = 33630Defines the gl texture0 sgis value used by `miniquake.render.gl11`.
const GL_TEXTURE1_SGIS = 33631Defines the gl texture1 sgis value used by `miniquake.render.gl11`.
const GL_TEXTURE_2D = 3553Defines the gl texture 2 d value used by `miniquake.render.gl11`.
const GL_TEXTURE_ENV = 8960Defines the gl texture env value used by `miniquake.render.gl11`.
const GL_TEXTURE_ENV_MODE = 8704Defines the gl texture env mode value used by `miniquake.render.gl11`.
const GL_TEXTURE_MAG_FILTER = 10240Defines the gl texture mag filter value used by `miniquake.render.gl11`.
const GL_TEXTURE_MAX_ANISOTROPY_EXT = 34046Defines the gl texture max anisotropy ext value used by `miniquake.render.gl11`.
const GL_TEXTURE_MIN_FILTER = 10241Defines the gl texture min filter value used by `miniquake.render.gl11`.
const GL_TEXTURE_WRAP_S = 10242Defines the gl texture wrap s value used by `miniquake.render.gl11`.
const GL_TEXTURE_WRAP_T = 10243Defines the gl texture wrap t value used by `miniquake.render.gl11`.
const GL_TRIANGLE_FAN = 6Defines the gl triangle fan value used by `miniquake.render.gl11`.
const GL_TRIANGLE_STRIP = 5Defines the gl triangle strip value used by `miniquake.render.gl11`.
const GL_TRIANGLES = 4Defines the gl triangles value used by `miniquake.render.gl11`.
const GL_UNSIGNED_BYTE = 5121Defines the gl unsigned byte value used by `miniquake.render.gl11`.
const GL_VENDOR = 7936Defines the gl vendor value used by `miniquake.render.gl11`.
const GL_VERSION = 7938Defines the gl version value used by `miniquake.render.gl11`.
const GL_ZERO = 0Defines the gl zero value used by `miniquake.render.gl11`.
function loadIdentity()Read and validate identity.
function matrixMode(mode)Return matrix mode derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | dynamic | — | The mode input consumed by `matrixMode`. |
function multiTexCoord2(unit, s, t)Implements the `multiTexCoord2` operation for `miniquake.render.gl11` (multi tex coord2).
| Parameter | Type | Default | Description |
|---|---|---|---|
unit | dynamic | — | The unit input consumed by `multiTexCoord2`. |
s | dynamic | — | The s input consumed by `multiTexCoord2`. |
t | dynamic | — | The t input consumed by `multiTexCoord2`. |
function multitextureAvailable()Report whether multitexture available holds for the active state.
inline function nativeBatchAvailable()Report whether native batch available holds for the active state.
nextTextureNameTracks the module-level next texture name state owned by `miniquake.render.gl11`.
inline function nextTextureNameValue()Return next texture name value for the active module state.
function ortho(left, right, bottom, top, nearValue, farValue)Implements the `ortho` operation for `miniquake.render.gl11` (ortho).
| Parameter | Type | Default | Description |
|---|---|---|---|
left | dynamic | — | The left input consumed by `ortho`. |
right | dynamic | — | The right input consumed by `ortho`. |
bottom | dynamic | — | The bottom input consumed by `ortho`. |
top | dynamic | — | The top input consumed by `ortho`. |
nearValue | dynamic | — | The near value input consumed by `ortho`. |
farValue | dynamic | — | The far value input consumed by `ortho`. |
function polygonMode(face, mode)Return polygon mode derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
face | dynamic | — | The face input consumed by `polygonMode`. |
mode | dynamic | — | The mode input consumed by `polygonMode`. |
function popMatrix()Consume pending state for pop matrix.
function pushMatrix()Add state for push matrix.
function readPixelsRgba(x, y, width, height)Read and validate pixels rgba.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `readPixelsRgba`. |
y | dynamic | — | The y input consumed by `readPixelsRgba`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
function reserveTextureNames(count)MiniQuake 1.09 allocates every renderer texture from the single global texture_extension_number namespace. Keeping that namespace here prevents independently ported world, entity and 2-D upload paths from reusing and overwriting each other's OpenGL object names.
| Parameter | Type | Default | Description |
|---|---|---|---|
count | dynamic | — | Number of entries or units to process. |
function resetTextureNames(first)Update module state for texture names.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | The first input consumed by `resetTextureNames`. |
function rotate(angle, x, y, z)Implements the `rotate` operation for `miniquake.render.gl11` (rotate).
| Parameter | Type | Default | Description |
|---|---|---|---|
angle | dynamic | — | The angle input consumed by `rotate`. |
x | dynamic | — | The x input consumed by `rotate`. |
y | dynamic | — | The y input consumed by `rotate`. |
z | dynamic | — | The z input consumed by `rotate`. |
function scale(x, y, z)Implements the `scale` operation for `miniquake.render.gl11` (scale).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `scale`. |
y | dynamic | — | The y input consumed by `scale`. |
z | dynamic | — | The z input consumed by `scale`. |
function setBoundTextureForCompatibility(texture)Update module state for bound texture for compatibility.
| Parameter | Type | Default | Description |
|---|---|---|---|
texture | dynamic | — | Texture resource processed by the operation. |
function shadeModel(mode)Implements the `shadeModel` operation for `miniquake.render.gl11` (shade model).
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | dynamic | — | The mode input consumed by `shadeModel`. |
function staticGeometryCall(objectValue, passId)Implements the `staticGeometryCall` operation for `miniquake.render.gl11` (static geometry call).
| Parameter | Type | Default | Description |
|---|---|---|---|
objectValue | dynamic | — | The object value input consumed by `staticGeometryCall`. |
passId | dynamic | — | Stable identifier of the requested entry. |
function staticGeometryCallBatch(keys, passId)Implements the `staticGeometryCallBatch` operation for `miniquake.render.gl11` (static geometry call batch).
| Parameter | Type | Default | Description |
|---|---|---|---|
keys | dynamic | — | The keys input consumed by `staticGeometryCallBatch`. |
passId | dynamic | — | Stable identifier of the requested entry. |
function staticGeometryCallBatchCount(keys, keyCount, passId)Draw only the populated key prefix of a reusable static-geometry buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
keys | dynamic | — | The keys input consumed by `staticGeometryCallBatchCount`. |
keyCount | dynamic | — | Number of entries or units to process. |
passId | dynamic | — | Stable identifier of the requested entry. |
function staticGeometryCallMultitextureBatch(records)Implements the `staticGeometryCallMultitextureBatch` operation for `miniquake.render.gl11` (static geometry call multitexture batch).
| Parameter | Type | Default | Description |
|---|---|---|---|
records | dynamic | — | The records input consumed by `staticGeometryCallMultitextureBatch`. |
function staticGeometryCallMultitextureBatchCount(records, recordCount)Draw only the populated prefix of a reusable multitexture record buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
records | dynamic | — | The records input consumed by `staticGeometryCallMultitextureBatchCount`. |
recordCount | dynamic | — | Number of entries or units to process. |
function staticGeometryPrepare(objectValue, passId)Implements the `staticGeometryPrepare` operation for `miniquake.render.gl11` (static geometry prepare).
| Parameter | Type | Default | Description |
|---|---|---|---|
objectValue | dynamic | — | The object value input consumed by `staticGeometryPrepare`. |
passId | dynamic | — | Stable identifier of the requested entry. |
function texcoord2(s, t)Implements the `texcoord2` operation for `miniquake.render.gl11` (texcoord2).
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | The s input consumed by `texcoord2`. |
t | dynamic | — | The t input consumed by `texcoord2`. |
function textureEnvironment(mode)Implements the `textureEnvironment` operation for `miniquake.render.gl11` (texture environment).
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | dynamic | — | The mode input consumed by `textureEnvironment`. |
function textureEnvironmentParameter(name, value)Implements the `textureEnvironmentParameter` operation for `miniquake.render.gl11` (texture environment parameter).
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
value | dynamic | — | Value consumed by `textureEnvironmentParameter`. |
function textureParameter(name, value)Implements the `textureParameter` operation for `miniquake.render.gl11` (texture parameter).
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
value | dynamic | — | Value consumed by `textureParameter`. |
function Trace_Begin()Trace begin through the collision world.
function Trace_End()Trace end through the collision world.
function traceCommand(name, arguments)Trace command through the collision world.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
arguments | dynamic | — | Command-line arguments to inspect or execute. |
inline function traceEnabled()Trace enabled through the collision world.
function translate(x, y, z)Implements the `translate` operation for `miniquake.render.gl11` (translate).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `translate`. |
y | dynamic | — | The y input consumed by `translate`. |
z | dynamic | — | The z input consumed by `translate`. |
function uploadIndexedLevel(level, width, height, pixels)Upload indexed level to the active renderer.
| Parameter | Type | Default | Description |
|---|---|---|---|
level | dynamic | — | The level input consumed by `uploadIndexedLevel`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixels | dynamic | — | The pixels input consumed by `uploadIndexedLevel`. |
function uploadLuminance(width, height, pixels)Upload luminance to the active renderer.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixels | dynamic | — | The pixels input consumed by `uploadLuminance`. |
function uploadLuminanceSubImage(x, y, width, height, pixels)Upload luminance sub image to the active renderer.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `uploadLuminanceSubImage`. |
y | dynamic | — | The y input consumed by `uploadLuminanceSubImage`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixels | dynamic | — | The pixels input consumed by `uploadLuminanceSubImage`. |
function uploadRgb(width, height, pixels)Upload rgb to the active renderer.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixels | dynamic | — | The pixels input consumed by `uploadRgb`. |
function uploadRgba(width, height, pixels)Upload rgba to the active renderer.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixels | dynamic | — | The pixels input consumed by `uploadRgba`. |
function uploadRgbaLevel(level, internalFormat, width, height, pixels)Upload rgba level to the active renderer.
| Parameter | Type | Default | Description |
|---|---|---|---|
level | dynamic | — | The level input consumed by `uploadRgbaLevel`. |
internalFormat | dynamic | — | The internal format input consumed by `uploadRgbaLevel`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixels | dynamic | — | The pixels input consumed by `uploadRgbaLevel`. |
function uploadRgbaSubImage(x, y, width, height, pixels)Upload an rgba rectangle into an existing texture. Colored lightmap pages use this path while the original scalar atlas keeps its luminance command.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `uploadRgbaSubImage`. |
y | dynamic | — | The y input consumed by `uploadRgbaSubImage`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixels | dynamic | — | The pixels input consumed by `uploadRgbaSubImage`. |
function vertex2(x, y)Implements the `vertex2` operation for `miniquake.render.gl11` (vertex2).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `vertex2`. |
y | dynamic | — | The y input consumed by `vertex2`. |
function vertex3(x, y, z)Implements the `vertex3` operation for `miniquake.render.gl11` (vertex3).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `vertex3`. |
y | dynamic | — | The y input consumed by `vertex3`. |
z | dynamic | — | The z input consumed by `vertex3`. |
function viewport(x, y, width, height)Implements the `viewport` operation for `miniquake.render.gl11` (viewport).
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | The x input consumed by `viewport`. |
y | dynamic | — | The y input consumed by `viewport`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
function worldProgramAvailable()Report whether world program available holds for the active state.
function worldProgramEnable(enabled)Implements the `worldProgramEnable` operation for `miniquake.render.gl11` (world program enable).
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | Whether the optional behavior is enabled. |