MiniQuake

src/miniquake/render/gl11.ml

Package
miniquake.render.gl11
Reachable
Yes

Imports

Declarations

activeTexture

function activeTexture(unit)

Report whether active texture holds for the active state.

ParameterTypeDefaultDescription
unitdynamic—The unit input consumed by `activeTexture`.

View source

alphaFunc

function alphaFunc(functionName, reference)

Implements the `alphaFunc` operation for `miniquake.render.gl11` (alpha func).

ParameterTypeDefaultDescription
functionNamedynamic—Name that identifies the requested value or resource.
referencedynamic—The reference input consumed by `alphaFunc`.

View source

backendName

function backendName()

Return backend name derived from the active module state.

View source

begin

function begin(mode)

Initialize state for begin.

ParameterTypeDefaultDescription
modedynamic—The mode input consumed by `begin`.

View source

bindTexture

function bindTexture(texture)

Implements the `bindTexture` operation for `miniquake.render.gl11` (bind texture).

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.

View source

bits

function bits(value)

Return bits derived from the active module state.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `bits`.

View source

blendFunc

function blendFunc(source, destination)

Implements the `blendFunc` operation for `miniquake.render.gl11` (blend func).

ParameterTypeDefaultDescription
sourcedynamic—Source value or collection to read.
destinationdynamic—Destination value or collection to update.

View source

boundTextureName

boundTextureName

Tracks the module-level bound texture name state owned by `miniquake.render.gl11`.

View source

clear

function clear(mask)

Implements the `clear` operation for `miniquake.render.gl11` (clear).

ParameterTypeDefaultDescription
maskdynamic—The mask input consumed by `clear`.

View source

clearColor

function clearColor(red, green, blue, alpha)

Update module state for color.

ParameterTypeDefaultDescription
reddynamic—The red input consumed by `clearColor`.
greendynamic—The green input consumed by `clearColor`.
bluedynamic—The blue input consumed by `clearColor`.
alphadynamic—The alpha input consumed by `clearColor`.

View source

clearStaticGeometryCache

function clearStaticGeometryCache()

Update module state for static geometry cache.

View source

color

function color(red, green, blue, alpha)

Implements the `color` operation for `miniquake.render.gl11` (color).

ParameterTypeDefaultDescription
reddynamic—The red input consumed by `color`.
greendynamic—The green input consumed by `color`.
bluedynamic—The blue input consumed by `color`.
alphadynamic—The alpha input consumed by `color`.

View source

colorFloat

function colorFloat(red, green, blue, alpha)

Implements the `colorFloat` operation for `miniquake.render.gl11` (color float).

ParameterTypeDefaultDescription
reddynamic—The red input consumed by `colorFloat`.
greendynamic—The green input consumed by `colorFloat`.
bluedynamic—The blue input consumed by `colorFloat`.
alphadynamic—The alpha input consumed by `colorFloat`.

View source

cullFace

function cullFace(mode)

Implements the `cullFace` operation for `miniquake.render.gl11` (cull face).

ParameterTypeDefaultDescription
modedynamic—The mode input consumed by `cullFace`.

View source

currentBoundTexture

function currentBoundTexture()

Return bound texture.

View source

deleteTexture

function deleteTexture(texture)

Release or remove state for texture.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.

View source

depthFunc

function depthFunc(value)

Implements the `depthFunc` operation for `miniquake.render.gl11` (depth func).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `depthFunc`.

View source

depthMask

function depthMask(enabled)

Implements the `depthMask` operation for `miniquake.render.gl11` (depth mask).

ParameterTypeDefaultDescription
enableddynamic—Whether the optional behavior is enabled.

View source

depthRange

function depthRange(nearValue, farValue)

Implements the `depthRange` operation for `miniquake.render.gl11` (depth range).

ParameterTypeDefaultDescription
nearValuedynamic—The near value input consumed by `depthRange`.
farValuedynamic—The far value input consumed by `depthRange`.

View source

diagnosticTrace

diagnosticTrace

Tracks the module-level diagnostic trace state owned by `miniquake.render.gl11`.

View source

diagnosticTraceEnabled

diagnosticTraceEnabled

Tracks the module-level diagnostic trace enabled state owned by `miniquake.render.gl11`.

View source

disable

function disable(capability)

Implements the `disable` operation for `miniquake.render.gl11` (disable).

ParameterTypeDefaultDescription
capabilitydynamic—The capability input consumed by `disable`.

View source

drawBuffer

function drawBuffer(mode)

Render buffer.

ParameterTypeDefaultDescription
modedynamic—The mode input consumed by `drawBuffer`.

View source

enable

function enable(capability)

Implements the `enable` operation for `miniquake.render.gl11` (enable).

ParameterTypeDefaultDescription
capabilitydynamic—The capability input consumed by `enable`.

View source

ENHANCED_DRAW_NONE

const ENHANCED_DRAW_NONE = 0

Native 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.

View source

ENHANCED_DRAW_OVERLAY

const ENHANCED_DRAW_OVERLAY = 1

Defines the enhanced draw overlay value used by `miniquake.render.gl11`.

View source

enhancedAvailable

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.

View source

enhancedBeginFrame

function enhancedBeginFrame(lightPacket, byteCount)

Upload the compact world-space dynamic-light packet for the current view.

ParameterTypeDefaultDescription
lightPacketdynamic—The light packet input consumed by `enhancedBeginFrame`.
byteCountdynamic—Number of entries or units to process.

View source

enhancedConfigure

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.

ParameterTypeDefaultDescription
enableddynamic—Whether the optional behavior is enabled.
shadowsdynamic—The shadows input consumed by `enhancedConfigure`.
shadowQualitydynamic—The shadow quality input consumed by `enhancedConfigure`.

View source

enhancedDrawKind

function enhancedDrawKind(kind)

Select which following geometry is part of the enhanced additive pass.

ParameterTypeDefaultDescription
kinddynamic—The kind input consumed by `enhancedDrawKind`.

View source

enhancedEndFrame

function enhancedEndFrame()

End enhanced 3-D rendering and force the compatibility program/state back.

View source

errorCode

function errorCode()

Report code and return the corresponding failure status.

View source

finish

function finish()

Finalize state for finish.

View source

finishPrimitive

function finishPrimitive()

Finalize state for finish primitive.

View source

flush

function flush()

Implements the `flush` operation for `miniquake.render.gl11` (flush).

View source

frustum

function frustum(left, right, bottom, top, nearValue, farValue)

Implements the `frustum` operation for `miniquake.render.gl11` (frustum).

ParameterTypeDefaultDescription
leftdynamic—The left input consumed by `frustum`.
rightdynamic—The right input consumed by `frustum`.
bottomdynamic—The bottom input consumed by `frustum`.
topdynamic—The top input consumed by `frustum`.
nearValuedynamic—The near value input consumed by `frustum`.
farValuedynamic—The far value input consumed by `frustum`.

View source

generateTexture

function generateTexture()

Implements the `generateTexture` operation for `miniquake.render.gl11` (generate texture).

View source

getString

function getString(name)

Return string.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.

View source

GL_ALPHA_TEST

const GL_ALPHA_TEST = 3008

Defines the gl alpha test value used by `miniquake.render.gl11`.

View source

GL_BACK

const GL_BACK = 1029

Defines the gl back value used by `miniquake.render.gl11`.

View source

GL_BLEND

const GL_BLEND = 3042

Defines the gl blend value used by `miniquake.render.gl11`.

View source

GL_CLAMP

const GL_CLAMP = 10496

Defines the gl clamp value used by `miniquake.render.gl11`.

View source

GL_COLOR_BUFFER_BIT

const GL_COLOR_BUFFER_BIT = 16384

Defines the gl color buffer bit value used by `miniquake.render.gl11`.

View source

GL_COLOR_INDEX

const GL_COLOR_INDEX = 6400

Defines the gl color index value used by `miniquake.render.gl11`.

View source

GL_COLOR_INDEX8_EXT

const GL_COLOR_INDEX8_EXT = 32997

Defines the gl color index8 ext value used by `miniquake.render.gl11`.

View source

GL_COMBINE

const GL_COMBINE = 34160

Defines the gl combine value used by `miniquake.render.gl11`.

View source

GL_COMBINE_RGB

const GL_COMBINE_RGB = 34161

Defines the gl combine rgb value used by `miniquake.render.gl11`.

View source

GL_CULL_FACE

const GL_CULL_FACE = 2884

Defines the gl cull face value used by `miniquake.render.gl11`.

View source

GL_DEPTH_BUFFER_BIT

const GL_DEPTH_BUFFER_BIT = 256

Defines the gl depth buffer bit value used by `miniquake.render.gl11`.

View source

GL_DEPTH_TEST

const GL_DEPTH_TEST = 2929

Defines the gl depth test value used by `miniquake.render.gl11`.

View source

GL_DST_COLOR

const GL_DST_COLOR = 774

Defines the gl dst color value used by `miniquake.render.gl11`.

View source

GL_EXTENSIONS

const GL_EXTENSIONS = 7939

Defines the gl extensions value used by `miniquake.render.gl11`.

View source

GL_FILL

const GL_FILL = 6914

Defines the gl fill value used by `miniquake.render.gl11`.

View source

GL_FLAT

const GL_FLAT = 7424

Defines the gl flat value used by `miniquake.render.gl11`.

View source

GL_FRONT

const GL_FRONT = 1028

Defines the gl front value used by `miniquake.render.gl11`.

View source

GL_FRONT_AND_BACK

const GL_FRONT_AND_BACK = 1032

Defines the gl front and back value used by `miniquake.render.gl11`.

View source

GL_GEQUAL

const GL_GEQUAL = 518

Defines the gl gequal value used by `miniquake.render.gl11`.

View source

GL_GREATER

const GL_GREATER = 516

Defines the gl greater value used by `miniquake.render.gl11`.

View source

GL_LEQUAL

const GL_LEQUAL = 515

Defines the gl lequal value used by `miniquake.render.gl11`.

View source

GL_LINE

const GL_LINE = 6913

Defines the gl line value used by `miniquake.render.gl11`.

View source

GL_LINE_LOOP

const GL_LINE_LOOP = 2

Defines the gl line loop value used by `miniquake.render.gl11`.

View source

GL_LINE_STRIP

const GL_LINE_STRIP = 3

Defines the gl line strip value used by `miniquake.render.gl11`.

View source

GL_LINEAR

const GL_LINEAR = 9729

Defines the gl linear value used by `miniquake.render.gl11`.

View source

GL_LINEAR_MIPMAP_LINEAR

const GL_LINEAR_MIPMAP_LINEAR = 9987

Defines the gl linear mipmap linear value used by `miniquake.render.gl11`.

View source

GL_LINEAR_MIPMAP_NEAREST

const GL_LINEAR_MIPMAP_NEAREST = 9985

Defines the gl linear mipmap nearest value used by `miniquake.render.gl11`.

View source

GL_LINES

const GL_LINES = 1

Defines the gl lines value used by `miniquake.render.gl11`.

View source

GL_LUMINANCE

const GL_LUMINANCE = 6409

Defines the gl luminance value used by `miniquake.render.gl11`.

View source

GL_MODELVIEW

const GL_MODELVIEW = 5888

Defines the gl modelview value used by `miniquake.render.gl11`.

View source

GL_MODULATE

const GL_MODULATE = 8448

Defines the gl modulate value used by `miniquake.render.gl11`.

View source

GL_NEAREST

const GL_NEAREST = 9728

Defines the gl nearest value used by `miniquake.render.gl11`.

View source

GL_NEAREST_MIPMAP_LINEAR

const GL_NEAREST_MIPMAP_LINEAR = 9986

Defines the gl nearest mipmap linear value used by `miniquake.render.gl11`.

View source

GL_NEAREST_MIPMAP_NEAREST

const GL_NEAREST_MIPMAP_NEAREST = 9984

Defines the gl nearest mipmap nearest value used by `miniquake.render.gl11`.

View source

GL_ONE

const GL_ONE = 1

Defines the gl one value used by `miniquake.render.gl11`.

View source

GL_ONE_MINUS_DST_COLOR

const GL_ONE_MINUS_DST_COLOR = 775

Defines the gl one minus dst color value used by `miniquake.render.gl11`.

View source

GL_ONE_MINUS_SRC_ALPHA

const GL_ONE_MINUS_SRC_ALPHA = 771

Defines the gl one minus src alpha value used by `miniquake.render.gl11`.

View source

GL_ONE_MINUS_SRC_COLOR

const GL_ONE_MINUS_SRC_COLOR = 769

Defines the gl one minus src color value used by `miniquake.render.gl11`.

View source

GL_OPERAND0_RGB

const GL_OPERAND0_RGB = 34192

Defines the gl operand0 rgb value used by `miniquake.render.gl11`.

View source

GL_OPERAND1_RGB

const GL_OPERAND1_RGB = 34193

Defines the gl operand1 rgb value used by `miniquake.render.gl11`.

View source

GL_POINTS

const GL_POINTS = 0

Defines the gl points value used by `miniquake.render.gl11`.

View source

GL_POLYGON

const GL_POLYGON = 9

Defines the gl polygon value used by `miniquake.render.gl11`.

View source

GL_PREVIOUS

const GL_PREVIOUS = 34168

Defines the gl previous value used by `miniquake.render.gl11`.

View source

GL_PROJECTION

const GL_PROJECTION = 5889

Defines the gl projection value used by `miniquake.render.gl11`.

View source

GL_QUADS

const GL_QUADS = 7

Defines the gl quads value used by `miniquake.render.gl11`.

View source

GL_RENDERER

const GL_RENDERER = 7937

Defines the gl renderer value used by `miniquake.render.gl11`.

View source

GL_REPEAT

const GL_REPEAT = 10497

Defines the gl repeat value used by `miniquake.render.gl11`.

View source

GL_REPLACE

const GL_REPLACE = 7681

Defines the gl replace value used by `miniquake.render.gl11`.

View source

GL_RGB

const GL_RGB = 6407

Defines the gl rgb value used by `miniquake.render.gl11`.

View source

GL_RGBA

const GL_RGBA = 6408

Defines the gl rgba value used by `miniquake.render.gl11`.

View source

GL_SMOOTH

const GL_SMOOTH = 7425

Defines the gl smooth value used by `miniquake.render.gl11`.

View source

GL_SOURCE0_RGB

const GL_SOURCE0_RGB = 34176

Defines the gl source0 rgb value used by `miniquake.render.gl11`.

View source

GL_SOURCE1_RGB

const GL_SOURCE1_RGB = 34177

Defines the gl source1 rgb value used by `miniquake.render.gl11`.

View source

GL_SRC_ALPHA

const GL_SRC_ALPHA = 770

Defines the gl src alpha value used by `miniquake.render.gl11`.

View source

GL_SRC_COLOR

const GL_SRC_COLOR = 768

Defines the gl src color value used by `miniquake.render.gl11`.

View source

GL_TEXTURE

const GL_TEXTURE = 5890

Defines the gl texture value used by `miniquake.render.gl11`.

View source

GL_TEXTURE0_SGIS

const GL_TEXTURE0_SGIS = 33630

Defines the gl texture0 sgis value used by `miniquake.render.gl11`.

View source

GL_TEXTURE1_SGIS

const GL_TEXTURE1_SGIS = 33631

Defines the gl texture1 sgis value used by `miniquake.render.gl11`.

View source

GL_TEXTURE_2D

const GL_TEXTURE_2D = 3553

Defines the gl texture 2 d value used by `miniquake.render.gl11`.

View source

GL_TEXTURE_ENV

const GL_TEXTURE_ENV = 8960

Defines the gl texture env value used by `miniquake.render.gl11`.

View source

GL_TEXTURE_ENV_MODE

const GL_TEXTURE_ENV_MODE = 8704

Defines the gl texture env mode value used by `miniquake.render.gl11`.

View source

GL_TEXTURE_MAG_FILTER

const GL_TEXTURE_MAG_FILTER = 10240

Defines the gl texture mag filter value used by `miniquake.render.gl11`.

View source

GL_TEXTURE_MAX_ANISOTROPY_EXT

const GL_TEXTURE_MAX_ANISOTROPY_EXT = 34046

Defines the gl texture max anisotropy ext value used by `miniquake.render.gl11`.

View source

GL_TEXTURE_MIN_FILTER

const GL_TEXTURE_MIN_FILTER = 10241

Defines the gl texture min filter value used by `miniquake.render.gl11`.

View source

GL_TEXTURE_WRAP_S

const GL_TEXTURE_WRAP_S = 10242

Defines the gl texture wrap s value used by `miniquake.render.gl11`.

View source

GL_TEXTURE_WRAP_T

const GL_TEXTURE_WRAP_T = 10243

Defines the gl texture wrap t value used by `miniquake.render.gl11`.

View source

GL_TRIANGLE_FAN

const GL_TRIANGLE_FAN = 6

Defines the gl triangle fan value used by `miniquake.render.gl11`.

View source

GL_TRIANGLE_STRIP

const GL_TRIANGLE_STRIP = 5

Defines the gl triangle strip value used by `miniquake.render.gl11`.

View source

GL_TRIANGLES

const GL_TRIANGLES = 4

Defines the gl triangles value used by `miniquake.render.gl11`.

View source

GL_UNSIGNED_BYTE

const GL_UNSIGNED_BYTE = 5121

Defines the gl unsigned byte value used by `miniquake.render.gl11`.

View source

GL_VENDOR

const GL_VENDOR = 7936

Defines the gl vendor value used by `miniquake.render.gl11`.

View source

GL_VERSION

const GL_VERSION = 7938

Defines the gl version value used by `miniquake.render.gl11`.

View source

GL_ZERO

const GL_ZERO = 0

Defines the gl zero value used by `miniquake.render.gl11`.

View source

loadIdentity

function loadIdentity()

Read and validate identity.

View source

matrixMode

function matrixMode(mode)

Return matrix mode derived from the active module state.

ParameterTypeDefaultDescription
modedynamic—The mode input consumed by `matrixMode`.

View source

multiTexCoord2

function multiTexCoord2(unit, s, t)

Implements the `multiTexCoord2` operation for `miniquake.render.gl11` (multi tex coord2).

ParameterTypeDefaultDescription
unitdynamic—The unit input consumed by `multiTexCoord2`.
sdynamic—The s input consumed by `multiTexCoord2`.
tdynamic—The t input consumed by `multiTexCoord2`.

View source

multitextureAvailable

function multitextureAvailable()

Report whether multitexture available holds for the active state.

View source

nativeBatchAvailable

inline function nativeBatchAvailable()

Report whether native batch available holds for the active state.

View source

nextTextureName

nextTextureName

Tracks the module-level next texture name state owned by `miniquake.render.gl11`.

View source

nextTextureNameValue

inline function nextTextureNameValue()

Return next texture name value for the active module state.

View source

ortho

function ortho(left, right, bottom, top, nearValue, farValue)

Implements the `ortho` operation for `miniquake.render.gl11` (ortho).

ParameterTypeDefaultDescription
leftdynamic—The left input consumed by `ortho`.
rightdynamic—The right input consumed by `ortho`.
bottomdynamic—The bottom input consumed by `ortho`.
topdynamic—The top input consumed by `ortho`.
nearValuedynamic—The near value input consumed by `ortho`.
farValuedynamic—The far value input consumed by `ortho`.

View source

polygonMode

function polygonMode(face, mode)

Return polygon mode derived from the active module state.

ParameterTypeDefaultDescription
facedynamic—The face input consumed by `polygonMode`.
modedynamic—The mode input consumed by `polygonMode`.

View source

popMatrix

function popMatrix()

Consume pending state for pop matrix.

View source

pushMatrix

function pushMatrix()

Add state for push matrix.

View source

readPixelsRgba

function readPixelsRgba(x, y, width, height)

Read and validate pixels rgba.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `readPixelsRgba`.
ydynamic—The y input consumed by `readPixelsRgba`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.

View source

reserveTextureNames

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.

ParameterTypeDefaultDescription
countdynamic—Number of entries or units to process.

View source

resetTextureNames

function resetTextureNames(first)

Update module state for texture names.

ParameterTypeDefaultDescription
firstdynamic—The first input consumed by `resetTextureNames`.

View source

rotate

function rotate(angle, x, y, z)

Implements the `rotate` operation for `miniquake.render.gl11` (rotate).

ParameterTypeDefaultDescription
angledynamic—The angle input consumed by `rotate`.
xdynamic—The x input consumed by `rotate`.
ydynamic—The y input consumed by `rotate`.
zdynamic—The z input consumed by `rotate`.

View source

scale

function scale(x, y, z)

Implements the `scale` operation for `miniquake.render.gl11` (scale).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `scale`.
ydynamic—The y input consumed by `scale`.
zdynamic—The z input consumed by `scale`.

View source

setBoundTextureForCompatibility

function setBoundTextureForCompatibility(texture)

Update module state for bound texture for compatibility.

ParameterTypeDefaultDescription
texturedynamic—Texture resource processed by the operation.

View source

shadeModel

function shadeModel(mode)

Implements the `shadeModel` operation for `miniquake.render.gl11` (shade model).

ParameterTypeDefaultDescription
modedynamic—The mode input consumed by `shadeModel`.

View source

staticGeometryCall

function staticGeometryCall(objectValue, passId)

Implements the `staticGeometryCall` operation for `miniquake.render.gl11` (static geometry call).

ParameterTypeDefaultDescription
objectValuedynamic—The object value input consumed by `staticGeometryCall`.
passIddynamic—Stable identifier of the requested entry.

View source

staticGeometryCallBatch

function staticGeometryCallBatch(keys, passId)

Implements the `staticGeometryCallBatch` operation for `miniquake.render.gl11` (static geometry call batch).

ParameterTypeDefaultDescription
keysdynamic—The keys input consumed by `staticGeometryCallBatch`.
passIddynamic—Stable identifier of the requested entry.

View source

staticGeometryCallBatchCount

function staticGeometryCallBatchCount(keys, keyCount, passId)

Draw only the populated key prefix of a reusable static-geometry buffer.

ParameterTypeDefaultDescription
keysdynamic—The keys input consumed by `staticGeometryCallBatchCount`.
keyCountdynamic—Number of entries or units to process.
passIddynamic—Stable identifier of the requested entry.

View source

staticGeometryCallMultitextureBatch

function staticGeometryCallMultitextureBatch(records)

Implements the `staticGeometryCallMultitextureBatch` operation for `miniquake.render.gl11` (static geometry call multitexture batch).

ParameterTypeDefaultDescription
recordsdynamic—The records input consumed by `staticGeometryCallMultitextureBatch`.

View source

staticGeometryCallMultitextureBatchCount

function staticGeometryCallMultitextureBatchCount(records, recordCount)

Draw only the populated prefix of a reusable multitexture record buffer.

ParameterTypeDefaultDescription
recordsdynamic—The records input consumed by `staticGeometryCallMultitextureBatchCount`.
recordCountdynamic—Number of entries or units to process.

View source

staticGeometryPrepare

function staticGeometryPrepare(objectValue, passId)

Implements the `staticGeometryPrepare` operation for `miniquake.render.gl11` (static geometry prepare).

ParameterTypeDefaultDescription
objectValuedynamic—The object value input consumed by `staticGeometryPrepare`.
passIddynamic—Stable identifier of the requested entry.

View source

texcoord2

function texcoord2(s, t)

Implements the `texcoord2` operation for `miniquake.render.gl11` (texcoord2).

ParameterTypeDefaultDescription
sdynamic—The s input consumed by `texcoord2`.
tdynamic—The t input consumed by `texcoord2`.

View source

textureEnvironment

function textureEnvironment(mode)

Implements the `textureEnvironment` operation for `miniquake.render.gl11` (texture environment).

ParameterTypeDefaultDescription
modedynamic—The mode input consumed by `textureEnvironment`.

View source

textureEnvironmentParameter

function textureEnvironmentParameter(name, value)

Implements the `textureEnvironmentParameter` operation for `miniquake.render.gl11` (texture environment parameter).

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.
valuedynamic—Value consumed by `textureEnvironmentParameter`.

View source

textureParameter

function textureParameter(name, value)

Implements the `textureParameter` operation for `miniquake.render.gl11` (texture parameter).

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.
valuedynamic—Value consumed by `textureParameter`.

View source

Trace_Begin

function Trace_Begin()

Trace begin through the collision world.

View source

Trace_End

function Trace_End()

Trace end through the collision world.

View source

traceCommand

function traceCommand(name, arguments)

Trace command through the collision world.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

traceEnabled

inline function traceEnabled()

Trace enabled through the collision world.

View source

translate

function translate(x, y, z)

Implements the `translate` operation for `miniquake.render.gl11` (translate).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `translate`.
ydynamic—The y input consumed by `translate`.
zdynamic—The z input consumed by `translate`.

View source

uploadIndexedLevel

function uploadIndexedLevel(level, width, height, pixels)

Upload indexed level to the active renderer.

ParameterTypeDefaultDescription
leveldynamic—The level input consumed by `uploadIndexedLevel`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
pixelsdynamic—The pixels input consumed by `uploadIndexedLevel`.

View source

uploadLuminance

function uploadLuminance(width, height, pixels)

Upload luminance to the active renderer.

ParameterTypeDefaultDescription
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
pixelsdynamic—The pixels input consumed by `uploadLuminance`.

View source

uploadLuminanceSubImage

function uploadLuminanceSubImage(x, y, width, height, pixels)

Upload luminance sub image to the active renderer.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `uploadLuminanceSubImage`.
ydynamic—The y input consumed by `uploadLuminanceSubImage`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
pixelsdynamic—The pixels input consumed by `uploadLuminanceSubImage`.

View source

uploadRgb

function uploadRgb(width, height, pixels)

Upload rgb to the active renderer.

ParameterTypeDefaultDescription
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
pixelsdynamic—The pixels input consumed by `uploadRgb`.

View source

uploadRgba

function uploadRgba(width, height, pixels)

Upload rgba to the active renderer.

ParameterTypeDefaultDescription
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
pixelsdynamic—The pixels input consumed by `uploadRgba`.

View source

uploadRgbaLevel

function uploadRgbaLevel(level, internalFormat, width, height, pixels)

Upload rgba level to the active renderer.

ParameterTypeDefaultDescription
leveldynamic—The level input consumed by `uploadRgbaLevel`.
internalFormatdynamic—The internal format input consumed by `uploadRgbaLevel`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
pixelsdynamic—The pixels input consumed by `uploadRgbaLevel`.

View source

uploadRgbaSubImage

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.

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `uploadRgbaSubImage`.
ydynamic—The y input consumed by `uploadRgbaSubImage`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
pixelsdynamic—The pixels input consumed by `uploadRgbaSubImage`.

View source

vertex2

function vertex2(x, y)

Implements the `vertex2` operation for `miniquake.render.gl11` (vertex2).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `vertex2`.
ydynamic—The y input consumed by `vertex2`.

View source

vertex3

function vertex3(x, y, z)

Implements the `vertex3` operation for `miniquake.render.gl11` (vertex3).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `vertex3`.
ydynamic—The y input consumed by `vertex3`.
zdynamic—The z input consumed by `vertex3`.

View source

viewport

function viewport(x, y, width, height)

Implements the `viewport` operation for `miniquake.render.gl11` (viewport).

ParameterTypeDefaultDescription
xdynamic—The x input consumed by `viewport`.
ydynamic—The y input consumed by `viewport`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.

View source

worldProgramAvailable

function worldProgramAvailable()

Report whether world program available holds for the active state.

View source

worldProgramEnable

function worldProgramEnable(enabled)

Implements the `worldProgramEnable` operation for `miniquake.render.gl11` (world program enable).

ParameterTypeDefaultDescription
enableddynamic—Whether the optional behavior is enabled.

View source