# asciiChar
function asciiChar(value)Implements the `asciiChar` operation for `miniquake.native` (ascii char).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `asciiChar`. |
src/miniquake/native.mlfunction asciiChar(value)Implements the `asciiChar` operation for `miniquake.native` (ascii char).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `asciiChar`. |
extern function asciiCharRaw(value as i32, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_ascii_char" returns u32Invokes the native `asciiCharRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | i32 | — | Value consumed by `asciiCharRaw`. |
output | bytes | — | Destination buffer that receives the encoded character. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `asciiCharRaw`.
extern function asciiCode(text as cstr) from "miniquake_native.dll" symbol "mq_ascii_code" returns i32Invokes the native `asciiCode` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | cstr | — | Text to parse or process. |
Returns: The `i32` result produced by `asciiCode`.
function atan2(y, x)Implements the `atan2` operation for `miniquake.native` (atan2).
| Parameter | Type | Default | Description |
|---|---|---|---|
y | dynamic | — | The y input consumed by `atan2`. |
x | dynamic | — | The x input consumed by `atan2`. |
extern function audioCapacity() from "miniquake_native.dll" symbol "mq_audio_capacity" returns u32Invokes the native `audioCapacity` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `audioCapacity`.
extern function audioClose() from "miniquake_native.dll" symbol "mq_audio_close" returns voidInvokes the native `audioClose` bridge operation used by `miniquake.native`.
extern function audioCompleted() from "miniquake_native.dll" symbol "mq_audio_completed" returns u32Invokes the native `audioCompleted` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `audioCompleted`.
extern function audioHeaderState(index as u32) from "miniquake_native.dll" symbol "mq_audio_header_state" returns u32Invokes the native `audioHeaderState` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | u32 | — | Zero-based index of the requested entry. |
Returns: The `u32` result produced by `audioHeaderState`.
extern function audioIsOpen() from "miniquake_native.dll" symbol "mq_audio_is_open" returns i32Invokes the native `audioIsOpen` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `audioIsOpen`.
extern function audioOpen(sampleRate as u32, channels as u32, bitsPerSample as u32) from "miniquake_native.dll" symbol "mq_audio_open" returns i32Invokes the native `audioOpen` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
sampleRate | u32 | — | The sample rate input consumed by `audioOpen`. |
channels | u32 | — | Number of interleaved audio channels. |
bitsPerSample | u32 | — | The bits per sample input consumed by `audioOpen`. |
Returns: The `i32` result produced by `audioOpen`.
extern function audioPosition(sampleMask as u32) from "miniquake_native.dll" symbol "mq_audio_position" returns u32Invokes the native `audioPosition` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
sampleMask | u32 | — | The sample mask input consumed by `audioPosition`. |
Returns: The `u32` result produced by `audioPosition`.
extern function audioQueued() from "miniquake_native.dll" symbol "mq_audio_queued" returns u32Invokes the native `audioQueued` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `audioQueued`.
extern function audioReset() from "miniquake_native.dll" symbol "mq_audio_reset" returns i32Invokes the native `audioReset` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `audioReset`.
extern function audioSubmit(data as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_audio_submit" returns i32Invokes the native `audioSubmit` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `audioSubmit`.
extern function audioSubmitted() from "miniquake_native.dll" symbol "mq_audio_submitted" returns u32Invokes the native `audioSubmitted` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `audioSubmitted`.
extern function audioUnderruns() from "miniquake_native.dll" symbol "mq_audio_underruns" returns u32Invokes the native `audioUnderruns` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `audioUnderruns`.
function bitsFloat(bits)Implements the `bitsFloat` operation for `miniquake.native` (bits float).
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | dynamic | — | The bits input consumed by `bitsFloat`. |
extern function conprocCloseHandle(handle as u64) from "miniquake_native.dll" symbol "mq_conproc_close_handle" returns voidInvokes the native `conprocCloseHandle` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `conprocCloseHandle`. |
extern function conprocCreateEvent() from "miniquake_native.dll" symbol "mq_conproc_create_event" returns u64Invokes the native `conprocCreateEvent` bridge operation used by `miniquake.native`.
Returns: The `u64` result produced by `conprocCreateEvent`.
extern function conprocMap(handle as u64) from "miniquake_native.dll" symbol "mq_conproc_map" returns ptrInvokes the native `conprocMap` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `conprocMap`. |
Returns: The `ptr` result produced by `conprocMap`.
function conprocReadConsoleText(beginLine, endLine)Implements the `conprocReadConsoleText` operation for `miniquake.native` (conproc read console text).
| Parameter | Type | Default | Description |
|---|---|---|---|
beginLine | dynamic | — | The begin line input consumed by `conprocReadConsoleText`. |
endLine | dynamic | — | The end line input consumed by `conprocReadConsoleText`. |
extern function conprocReadConsoleTextRaw(beginLine as i32, endLine as i32, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_conproc_read_console_text" returns u32Invokes the native `conprocReadConsoleTextRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
beginLine | i32 | — | The begin line input consumed by `conprocReadConsoleTextRaw`. |
endLine | i32 | — | The end line input consumed by `conprocReadConsoleTextRaw`. |
output | bytes | — | Destination buffer that receives console text. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `conprocReadConsoleTextRaw`.
extern function conprocReadI32(mapped as ptr, index as u32) from "miniquake_native.dll" symbol "mq_conproc_read_i32" returns i32Invokes the native `conprocReadI32` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mapped | ptr | — | The mapped input consumed by `conprocReadI32`. |
index | u32 | — | Zero-based index of the requested entry. |
Returns: The `i32` result produced by `conprocReadI32`.
function conprocReadText(mapped, byteOffset)Implements the `conprocReadText` operation for `miniquake.native` (conproc read text).
| Parameter | Type | Default | Description |
|---|---|---|---|
mapped | dynamic | — | The mapped input consumed by `conprocReadText`. |
byteOffset | dynamic | — | Zero-based offset of the requested data. |
extern function conprocReadTextRaw(mapped as ptr, byteOffset as u32, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_conproc_read_text" returns u32Invokes the native `conprocReadTextRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mapped | ptr | — | The mapped input consumed by `conprocReadTextRaw`. |
byteOffset | u32 | — | Zero-based offset of the requested data. |
output | bytes | — | Destination buffer that receives process text. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `conprocReadTextRaw`.
extern function conprocScreenLines() from "miniquake_native.dll" symbol "mq_conproc_screen_lines" returns i32Invokes the native `conprocScreenLines` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `conprocScreenLines`.
extern function conprocSetEvent(handle as u64) from "miniquake_native.dll" symbol "mq_conproc_set_event" returns i32Invokes the native `conprocSetEvent` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `conprocSetEvent`. |
Returns: The `i32` result produced by `conprocSetEvent`.
extern function conprocSetScreenSize(width as i32, height as i32) from "miniquake_native.dll" symbol "mq_conproc_set_screen_size" returns i32Invokes the native `conprocSetScreenSize` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
Returns: The `i32` result produced by `conprocSetScreenSize`.
extern function conprocUnmap(mapped as ptr) from "miniquake_native.dll" symbol "mq_conproc_unmap" returns i32Invokes the native `conprocUnmap` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mapped | ptr | — | The mapped input consumed by `conprocUnmap`. |
Returns: The `i32` result produced by `conprocUnmap`.
extern function conprocWaitAny(first as u64, second as u64, milliseconds as u32) from "miniquake_native.dll" symbol "mq_conproc_wait_any" returns i32Invokes the native `conprocWaitAny` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | u64 | — | The first input consumed by `conprocWaitAny`. |
second | u64 | — | The second input consumed by `conprocWaitAny`. |
milliseconds | u32 | — | The milliseconds input consumed by `conprocWaitAny`. |
Returns: The `i32` result produced by `conprocWaitAny`.
extern function conprocWriteI32(mapped as ptr, index as u32, value as i32) from "miniquake_native.dll" symbol "mq_conproc_write_i32" returns voidInvokes the native `conprocWriteI32` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mapped | ptr | — | The mapped input consumed by `conprocWriteI32`. |
index | u32 | — | Zero-based index of the requested entry. |
value | i32 | — | Value consumed by `conprocWriteI32`. |
extern function conprocWriteKey(character as i32, virtualKey as i32, scanCode as i32, shift as i32, down as i32) from "miniquake_native.dll" symbol "mq_conproc_write_key" returns i32Invokes the native `conprocWriteKey` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
character | i32 | — | The character input consumed by `conprocWriteKey`. |
virtualKey | i32 | — | The virtual key input consumed by `conprocWriteKey`. |
scanCode | i32 | — | The scan code input consumed by `conprocWriteKey`. |
shift | i32 | — | The shift input consumed by `conprocWriteKey`. |
down | i32 | — | The down input consumed by `conprocWriteKey`. |
Returns: The `i32` result produced by `conprocWriteKey`.
extern function conprocWriteText(mapped as ptr, byteOffset as u32, text as cstr, capacity as u32) from "miniquake_native.dll" symbol "mq_conproc_write_text" returns i32Invokes the native `conprocWriteText` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mapped | ptr | — | The mapped input consumed by `conprocWriteText`. |
byteOffset | u32 | — | Zero-based offset of the requested data. |
text | cstr | — | Text to parse or process. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `i32` result produced by `conprocWriteText`.
function cos(value)Implements the `cos` operation for `miniquake.native` (cos).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `cos`. |
extern function f32Atan2(yBits as u32, xBits as u32) from "miniquake_native.dll" symbol "mq_f32_atan2" returns u32Invokes the native `f32Atan2` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
yBits | u32 | — | The y bits input consumed by `f32Atan2`. |
xBits | u32 | — | The x bits input consumed by `f32Atan2`. |
Returns: The `u32` result produced by `f32Atan2`.
extern function f32Cos(bits as u32) from "miniquake_native.dll" symbol "mq_f32_cos" returns u32Invokes the native `f32Cos` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | u32 | — | The bits input consumed by `f32Cos`. |
Returns: The `u32` result produced by `f32Cos`.
extern function f32FromRaw(rawValue as u64) from "miniquake_native.dll" symbol "mq_f32_from_ml_raw" returns u32Invokes the native `f32FromRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
rawValue | u64 | — | The raw value input consumed by `f32FromRaw`. |
Returns: The `u32` result produced by `f32FromRaw`.
extern function f32FromText(text as cstr) from "miniquake_native.dll" symbol "mq_f32_from_text" returns u32Invokes the native `f32FromText` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | cstr | — | Text to parse or process. |
Returns: The `u32` result produced by `f32FromText`.
extern function f32Sin(bits as u32) from "miniquake_native.dll" symbol "mq_f32_sin" returns u32Invokes the native `f32Sin` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | u32 | — | The bits input consumed by `f32Sin`. |
Returns: The `u32` result produced by `f32Sin`.
extern function f32Sqrt(bits as u32) from "miniquake_native.dll" symbol "mq_f32_sqrt" returns u32Invokes the native `f32Sqrt` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | u32 | — | The bits input consumed by `f32Sqrt`. |
Returns: The `u32` result produced by `f32Sqrt`.
function f32ToFixed6(bits)C printf("%f") boundary used by Cvar_SetValue, ED_Write and version-5 savegames. The native bridge avoids i32 overflow for values such as the stock Quake item bitmask 4097 and preserves negative zero exactly.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | dynamic | — | The bits input consumed by `f32ToFixed6`. |
extern function f32ToFixed6Raw(bits as u32, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_f32_to_fixed6" returns u32Invokes the native `f32ToFixed6Raw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | u32 | — | The bits input consumed by `f32ToFixed6Raw`. |
output | bytes | — | Destination buffer that receives the fixed-point text. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `f32ToFixed6Raw`.
extern function f32ToI32Trunc(bits as u32) from "miniquake_native.dll" symbol "mq_f32_to_i32_trunc" returns i32Invokes the native `f32ToI32Trunc` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | u32 | — | The bits input consumed by `f32ToI32Trunc`. |
Returns: The `i32` result produced by `f32ToI32Trunc`.
extern function f32ToRaw(bits as u32) from "miniquake_native.dll" symbol "mq_f32_to_ml_raw" returns u64Invokes the native `f32ToRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | u32 | — | The bits input consumed by `f32ToRaw`. |
Returns: The `u64` result produced by `f32ToRaw`.
function f32ToText(bits)Implements the `f32ToText` operation for `miniquake.native` (f32 to text).
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | dynamic | — | The bits input consumed by `f32ToText`. |
extern function f32ToTextRaw(bits as u32, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_f32_to_text" returns u32Invokes the native `f32ToTextRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | u32 | — | The bits input consumed by `f32ToTextRaw`. |
output | bytes | — | Destination buffer that receives the formatted text. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `f32ToTextRaw`.
function fixedSixText(value)Implements the `fixedSixText` operation for `miniquake.native` (fixed six text).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `fixedSixText`. |
function floatBits(value)Return float bits derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `floatBits`. |
function floatText(value)Implements the `floatText` operation for `miniquake.native` (float text).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `floatText`. |
extern function glActiveTexture(unit as i32) from "miniquake_native.dll" symbol "mq_gl_active_texture" returns voidInvokes the native `glActiveTexture` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
unit | i32 | — | The unit input consumed by `glActiveTexture`. |
extern function glAlphaFunc(functionName as u32, referenceBits as u32) from "miniquake_native.dll" symbol "mq_gl_alpha_func" returns voidInvokes the native `glAlphaFunc` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
functionName | u32 | — | Name that identifies the requested value or resource. |
referenceBits | u32 | — | The reference bits input consumed by `glAlphaFunc`. |
extern function glBegin(mode as u32) from "miniquake_native.dll" symbol "mq_gl_begin" returns voidInvokes the native `glBegin` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | u32 | — | The mode input consumed by `glBegin`. |
extern function glBindTexture(target as u32, texture as u32) from "miniquake_native.dll" symbol "mq_gl_bind_texture" returns voidInvokes the native `glBindTexture` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | u32 | — | The target input consumed by `glBindTexture`. |
texture | u32 | — | Texture resource processed by the operation. |
extern function glBlendFunc(source as u32, destination as u32) from "miniquake_native.dll" symbol "mq_gl_blend_func" returns voidInvokes the native `glBlendFunc` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
source | u32 | — | Source value or collection to read. |
destination | u32 | — | Destination value or collection to update. |
extern function glClear(mask as u32) from "miniquake_native.dll" symbol "mq_gl_clear" returns voidInvokes the native `glClear` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mask | u32 | — | The mask input consumed by `glClear`. |
extern function glClearColor(redBits as u32, greenBits as u32, blueBits as u32, alphaBits as u32) from "miniquake_native.dll" symbol "mq_gl_clear_color" returns voidInvokes the native `glClearColor` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
redBits | u32 | — | The red bits input consumed by `glClearColor`. |
greenBits | u32 | — | The green bits input consumed by `glClearColor`. |
blueBits | u32 | — | The blue bits input consumed by `glClearColor`. |
alphaBits | u32 | — | The alpha bits input consumed by `glClearColor`. |
extern function glColor4ub(red as u32, green as u32, blue as u32, alpha as u32) from "miniquake_native.dll" symbol "mq_gl_color4ub" returns voidInvokes the native `glColor4ub` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
red | u32 | — | The red input consumed by `glColor4ub`. |
green | u32 | — | The green input consumed by `glColor4ub`. |
blue | u32 | — | The blue input consumed by `glColor4ub`. |
alpha | u32 | — | The alpha input consumed by `glColor4ub`. |
extern function glCullFace(mode as u32) from "miniquake_native.dll" symbol "mq_gl_cull_face" returns voidInvokes the native `glCullFace` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | u32 | — | The mode input consumed by `glCullFace`. |
extern function glDeleteTextures(count as i32, textureIds as bytes) from "miniquake_native.dll" symbol "mq_gl_delete_textures" returns voidInvokes the native `glDeleteTextures` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
count | i32 | — | Number of entries or units to process. |
textureIds | bytes | — | The texture ids input consumed by `glDeleteTextures`. |
extern function glDepthFunc(functionName as u32) from "miniquake_native.dll" symbol "mq_gl_depth_func" returns voidInvokes the native `glDepthFunc` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
functionName | u32 | — | Name that identifies the requested value or resource. |
extern function glDepthMask(enabled as i32) from "miniquake_native.dll" symbol "mq_gl_depth_mask" returns voidInvokes the native `glDepthMask` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | i32 | — | Whether the optional behavior is enabled. |
extern function glDepthRange(nearBits as u32, farBits as u32) from "miniquake_native.dll" symbol "mq_gl_depth_range" returns voidInvokes the native `glDepthRange` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
nearBits | u32 | — | The near bits input consumed by `glDepthRange`. |
farBits | u32 | — | The far bits input consumed by `glDepthRange`. |
extern function glDisable(capability as u32) from "miniquake_native.dll" symbol "mq_gl_disable" returns voidInvokes the native `glDisable` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
capability | u32 | — | The capability input consumed by `glDisable`. |
extern function glDrawAliasBatch(data as bytes, byteCount as u32, shadeDots as bytes, shadeDotCount as u32, shadeLightBits as u32) from "miniquake_native.dll" symbol "mq_gl_draw_alias_batch" returns i32Invokes the native `glDrawAliasBatch` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
shadeDots | bytes | — | The shade dots input consumed by `glDrawAliasBatch`. |
shadeDotCount | u32 | — | Number of entries or units to process. |
shadeLightBits | u32 | — | The shade light bits input consumed by `glDrawAliasBatch`. |
Returns: The `i32` result produced by `glDrawAliasBatch`.
extern function glDrawAliasModel(data as bytes, byteCount as u32, shadeDots as bytes, shadeDotCount as u32, shadeLightBits as u32, originX as u32, originY as u32, originZ as u32, angleX as u32, angleY as u32, angleZ as u32, scaleOriginX as u32, scaleOriginY as u32, scaleOriginZ as u32, scaleX as u32, scaleY as u32, scaleZ as u32, doubleEyes as i32, smooth as i32) from "miniquake_native.dll" symbol "mq_gl_draw_alias_model" returns i32Invokes the native `glDrawAliasModel` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
shadeDots | bytes | — | The shade dots input consumed by `glDrawAliasModel`. |
shadeDotCount | u32 | — | Number of entries or units to process. |
shadeLightBits | u32 | — | The shade light bits input consumed by `glDrawAliasModel`. |
originX | u32 | — | The origin x input consumed by `glDrawAliasModel`. |
originY | u32 | — | The origin y input consumed by `glDrawAliasModel`. |
originZ | u32 | — | The origin z input consumed by `glDrawAliasModel`. |
angleX | u32 | — | The angle x input consumed by `glDrawAliasModel`. |
angleY | u32 | — | The angle y input consumed by `glDrawAliasModel`. |
angleZ | u32 | — | The angle z input consumed by `glDrawAliasModel`. |
scaleOriginX | u32 | — | The scale origin x input consumed by `glDrawAliasModel`. |
scaleOriginY | u32 | — | The scale origin y input consumed by `glDrawAliasModel`. |
scaleOriginZ | u32 | — | The scale origin z input consumed by `glDrawAliasModel`. |
scaleX | u32 | — | The scale x input consumed by `glDrawAliasModel`. |
scaleY | u32 | — | The scale y input consumed by `glDrawAliasModel`. |
scaleZ | u32 | — | The scale z input consumed by `glDrawAliasModel`. |
doubleEyes | i32 | — | The double eyes input consumed by `glDrawAliasModel`. |
smooth | i32 | — | The smooth input consumed by `glDrawAliasModel`. |
Returns: The `i32` result produced by `glDrawAliasModel`.
extern function glDrawAliasModelLerp(previousData as bytes, previousByteCount as u32, currentData as bytes, currentByteCount as u32, fractionBits as u32, shadeDots as bytes, shadeDotCount as u32, shadeLightBits as u32, originX as u32, originY as u32, originZ as u32, angleX as u32, angleY as u32, angleZ as u32, scaleOriginX as u32, scaleOriginY as u32, scaleOriginZ as u32, scaleX as u32, scaleY as u32, scaleZ as u32, doubleEyes as i32, smooth as i32) from "miniquake_native.dll" symbol "mq_gl_draw_alias_model_lerp" returns i32Invokes the native `glDrawAliasModelLerp` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
previousData | bytes | — | The previous data input consumed by `glDrawAliasModelLerp`. |
previousByteCount | u32 | — | Number of entries or units to process. |
currentData | bytes | — | The current data input consumed by `glDrawAliasModelLerp`. |
currentByteCount | u32 | — | Number of entries or units to process. |
fractionBits | u32 | — | The fraction bits input consumed by `glDrawAliasModelLerp`. |
shadeDots | bytes | — | The shade dots input consumed by `glDrawAliasModelLerp`. |
shadeDotCount | u32 | — | Number of entries or units to process. |
shadeLightBits | u32 | — | The shade light bits input consumed by `glDrawAliasModelLerp`. |
originX | u32 | — | The origin x input consumed by `glDrawAliasModelLerp`. |
originY | u32 | — | The origin y input consumed by `glDrawAliasModelLerp`. |
originZ | u32 | — | The origin z input consumed by `glDrawAliasModelLerp`. |
angleX | u32 | — | The angle x input consumed by `glDrawAliasModelLerp`. |
angleY | u32 | — | The angle y input consumed by `glDrawAliasModelLerp`. |
angleZ | u32 | — | The angle z input consumed by `glDrawAliasModelLerp`. |
scaleOriginX | u32 | — | The scale origin x input consumed by `glDrawAliasModelLerp`. |
scaleOriginY | u32 | — | The scale origin y input consumed by `glDrawAliasModelLerp`. |
scaleOriginZ | u32 | — | The scale origin z input consumed by `glDrawAliasModelLerp`. |
scaleX | u32 | — | The scale x input consumed by `glDrawAliasModelLerp`. |
scaleY | u32 | — | The scale y input consumed by `glDrawAliasModelLerp`. |
scaleZ | u32 | — | The scale z input consumed by `glDrawAliasModelLerp`. |
doubleEyes | i32 | — | The double eyes input consumed by `glDrawAliasModelLerp`. |
smooth | i32 | — | The smooth input consumed by `glDrawAliasModelLerp`. |
Returns: The `i32` result produced by `glDrawAliasModelLerp`.
extern function glDrawAliasRayShadow(data as bytes, byteCount as u32, originX as u32, originY as u32, originZ as u32, angleX as u32, angleY as u32, angleZ as u32, scaleOriginX as u32, scaleOriginY as u32, scaleOriginZ as u32, scaleX as u32, scaleY as u32, scaleZ as u32, doubleEyes as i32, pointLightActive as i32, lightX as u32, lightY as u32, lightZ as u32, sampleX as u32, sampleY as u32) from "miniquake_native.dll" symbol "mq_gl_draw_alias_ray_shadow" returns i32Invokes the native `glDrawAliasRayShadow` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
originX | u32 | — | The origin x input consumed by `glDrawAliasRayShadow`. |
originY | u32 | — | The origin y input consumed by `glDrawAliasRayShadow`. |
originZ | u32 | — | The origin z input consumed by `glDrawAliasRayShadow`. |
angleX | u32 | — | The angle x input consumed by `glDrawAliasRayShadow`. |
angleY | u32 | — | The angle y input consumed by `glDrawAliasRayShadow`. |
angleZ | u32 | — | The angle z input consumed by `glDrawAliasRayShadow`. |
scaleOriginX | u32 | — | The scale origin x input consumed by `glDrawAliasRayShadow`. |
scaleOriginY | u32 | — | The scale origin y input consumed by `glDrawAliasRayShadow`. |
scaleOriginZ | u32 | — | The scale origin z input consumed by `glDrawAliasRayShadow`. |
scaleX | u32 | — | The scale x input consumed by `glDrawAliasRayShadow`. |
scaleY | u32 | — | The scale y input consumed by `glDrawAliasRayShadow`. |
scaleZ | u32 | — | The scale z input consumed by `glDrawAliasRayShadow`. |
doubleEyes | i32 | — | The double eyes input consumed by `glDrawAliasRayShadow`. |
pointLightActive | i32 | — | The point light active input consumed by `glDrawAliasRayShadow`. |
lightX | u32 | — | The light x input consumed by `glDrawAliasRayShadow`. |
lightY | u32 | — | The light y input consumed by `glDrawAliasRayShadow`. |
lightZ | u32 | — | The light z input consumed by `glDrawAliasRayShadow`. |
sampleX | u32 | — | The sample x input consumed by `glDrawAliasRayShadow`. |
sampleY | u32 | — | The sample y input consumed by `glDrawAliasRayShadow`. |
Returns: The `i32` result produced by `glDrawAliasRayShadow`.
extern function glDrawBuffer(mode as u32) from "miniquake_native.dll" symbol "mq_gl_draw_buffer" returns voidInvokes the native `glDrawBuffer` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | u32 | — | The mode input consumed by `glDrawBuffer`. |
extern function glDrawParticleBatch(data as bytes, byteCount as u32, viewOriginX as u32, viewOriginY as u32, viewOriginZ as u32, viewForwardX as u32, viewForwardY as u32, viewForwardZ as u32, viewUpX as u32, viewUpY as u32, viewUpZ as u32, viewRightX as u32, viewRightY as u32, viewRightZ as u32) from "miniquake_native.dll" symbol "mq_gl_draw_particle_batch" returns i32Invokes the native `glDrawParticleBatch` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
viewOriginX | u32 | — | The view origin x input consumed by `glDrawParticleBatch`. |
viewOriginY | u32 | — | The view origin y input consumed by `glDrawParticleBatch`. |
viewOriginZ | u32 | — | The view origin z input consumed by `glDrawParticleBatch`. |
viewForwardX | u32 | — | The view forward x input consumed by `glDrawParticleBatch`. |
viewForwardY | u32 | — | The view forward y input consumed by `glDrawParticleBatch`. |
viewForwardZ | u32 | — | The view forward z input consumed by `glDrawParticleBatch`. |
viewUpX | u32 | — | The view up x input consumed by `glDrawParticleBatch`. |
viewUpY | u32 | — | The view up y input consumed by `glDrawParticleBatch`. |
viewUpZ | u32 | — | The view up z input consumed by `glDrawParticleBatch`. |
viewRightX | u32 | — | The view right x input consumed by `glDrawParticleBatch`. |
viewRightY | u32 | — | The view right y input consumed by `glDrawParticleBatch`. |
viewRightZ | u32 | — | The view right z input consumed by `glDrawParticleBatch`. |
Returns: The `i32` result produced by `glDrawParticleBatch`.
extern function glDrawParticleBatchStyled(data as bytes, byteCount as u32, viewOriginX as u32, viewOriginY as u32, viewOriginZ as u32, viewForwardX as u32, viewForwardY as u32, viewForwardZ as u32, viewUpX as u32, viewUpY as u32, viewUpZ as u32, viewRightX as u32, viewRightY as u32, viewRightZ as u32) from "miniquake_native.dll" symbol "mq_gl_draw_particle_batch_styled" returns i32Invokes the native `glDrawParticleBatchStyled` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
viewOriginX | u32 | — | The view origin x input consumed by `glDrawParticleBatchStyled`. |
viewOriginY | u32 | — | The view origin y input consumed by `glDrawParticleBatchStyled`. |
viewOriginZ | u32 | — | The view origin z input consumed by `glDrawParticleBatchStyled`. |
viewForwardX | u32 | — | The view forward x input consumed by `glDrawParticleBatchStyled`. |
viewForwardY | u32 | — | The view forward y input consumed by `glDrawParticleBatchStyled`. |
viewForwardZ | u32 | — | The view forward z input consumed by `glDrawParticleBatchStyled`. |
viewUpX | u32 | — | The view up x input consumed by `glDrawParticleBatchStyled`. |
viewUpY | u32 | — | The view up y input consumed by `glDrawParticleBatchStyled`. |
viewUpZ | u32 | — | The view up z input consumed by `glDrawParticleBatchStyled`. |
viewRightX | u32 | — | The view right x input consumed by `glDrawParticleBatchStyled`. |
viewRightY | u32 | — | The view right y input consumed by `glDrawParticleBatchStyled`. |
viewRightZ | u32 | — | The view right z input consumed by `glDrawParticleBatchStyled`. |
Returns: The `i32` result produced by `glDrawParticleBatchStyled`.
extern function glDrawShadowBatch(data as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_gl_draw_shadow_batch" returns i32Invokes the native `glDrawShadowBatch` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `glDrawShadowBatch`.
extern function glEnable(capability as u32) from "miniquake_native.dll" symbol "mq_gl_enable" returns voidInvokes the native `glEnable` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
capability | u32 | — | The capability input consumed by `glEnable`. |
extern function glEnd() from "miniquake_native.dll" symbol "mq_gl_end" returns voidInvokes the native `glEnd` bridge operation used by `miniquake.native`.
extern function glEnhancedAvailable() from "miniquake_native.dll" symbol "mq_gl_enhanced_available" returns i32Invokes the native `glEnhancedAvailable` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `glEnhancedAvailable`.
extern function glEnhancedBeginFrame(lights as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_gl_enhanced_begin_frame" returns i32Invokes the native `glEnhancedBeginFrame` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
lights | bytes | — | The lights input consumed by `glEnhancedBeginFrame`. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `glEnhancedBeginFrame`.
extern function glEnhancedConfigure(enabled as i32, shadows as i32, shadowQuality as i32) from "miniquake_native.dll" symbol "mq_gl_enhanced_configure" returns i32Invokes the native `glEnhancedConfigure` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | i32 | — | Whether the optional behavior is enabled. |
shadows | i32 | — | The shadows input consumed by `glEnhancedConfigure`. |
shadowQuality | i32 | — | The shadow quality input consumed by `glEnhancedConfigure`. |
Returns: The `i32` result produced by `glEnhancedConfigure`.
extern function glEnhancedDrawKind(kind as i32) from "miniquake_native.dll" symbol "mq_gl_enhanced_draw_kind" returns voidInvokes the native `glEnhancedDrawKind` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
kind | i32 | — | The kind input consumed by `glEnhancedDrawKind`. |
extern function glEnhancedEndFrame() from "miniquake_native.dll" symbol "mq_gl_enhanced_end_frame" returns voidInvokes the native `glEnhancedEndFrame` bridge operation used by `miniquake.native`.
extern function glFinish() from "miniquake_native.dll" symbol "mq_gl_finish" returns voidInvokes the native `glFinish` bridge operation used by `miniquake.native`.
extern function glFlush() from "miniquake_native.dll" symbol "mq_gl_flush" returns voidInvokes the native `glFlush` bridge operation used by `miniquake.native`.
extern function glFrustum(leftBits as u32, rightBits as u32, bottomBits as u32, topBits as u32, nearBits as u32, farBits as u32) from "miniquake_native.dll" symbol "mq_gl_frustum" returns voidInvokes the native `glFrustum` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
leftBits | u32 | — | The left bits input consumed by `glFrustum`. |
rightBits | u32 | — | The right bits input consumed by `glFrustum`. |
bottomBits | u32 | — | The bottom bits input consumed by `glFrustum`. |
topBits | u32 | — | The top bits input consumed by `glFrustum`. |
nearBits | u32 | — | The near bits input consumed by `glFrustum`. |
farBits | u32 | — | The far bits input consumed by `glFrustum`. |
extern function glGenTextures(count as i32, textureIds as bytes) from "miniquake_native.dll" symbol "mq_gl_gen_textures" returns voidInvokes the native `glGenTextures` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
count | i32 | — | Number of entries or units to process. |
textureIds | bytes | — | The texture ids input consumed by `glGenTextures`. |
extern function glGetError() from "miniquake_native.dll" symbol "mq_gl_get_error" returns u32Invokes the native `glGetError` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `glGetError`.
function glGetString(name)Implements the `glGetString` operation for `miniquake.native` (gl get string).
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
extern function glGetStringRaw(name as u32, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_gl_get_string" returns u32Invokes the native `glGetStringRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | u32 | — | Stable name that identifies the requested object or option. |
output | bytes | — | Destination buffer that receives the OpenGL string. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `glGetStringRaw`.
extern function glLoadIdentity() from "miniquake_native.dll" symbol "mq_gl_load_identity" returns voidInvokes the native `glLoadIdentity` bridge operation used by `miniquake.native`.
extern function glMatrixMode(mode as u32) from "miniquake_native.dll" symbol "mq_gl_matrix_mode" returns voidInvokes the native `glMatrixMode` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | u32 | — | The mode input consumed by `glMatrixMode`. |
extern function glMultiTexCoord2(unit as i32, sBits as u32, tBits as u32) from "miniquake_native.dll" symbol "mq_gl_multi_tex_coord2" returns voidInvokes the native `glMultiTexCoord2` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
unit | i32 | — | The unit input consumed by `glMultiTexCoord2`. |
sBits | u32 | — | The s bits input consumed by `glMultiTexCoord2`. |
tBits | u32 | — | The t bits input consumed by `glMultiTexCoord2`. |
extern function glMultitextureAvailable() from "miniquake_native.dll" symbol "mq_gl_multitexture_available" returns i32Invokes the native `glMultitextureAvailable` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `glMultitextureAvailable`.
extern function glOrtho(leftBits as u32, rightBits as u32, bottomBits as u32, topBits as u32, nearBits as u32, farBits as u32) from "miniquake_native.dll" symbol "mq_gl_ortho" returns voidInvokes the native `glOrtho` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
leftBits | u32 | — | The left bits input consumed by `glOrtho`. |
rightBits | u32 | — | The right bits input consumed by `glOrtho`. |
bottomBits | u32 | — | The bottom bits input consumed by `glOrtho`. |
topBits | u32 | — | The top bits input consumed by `glOrtho`. |
nearBits | u32 | — | The near bits input consumed by `glOrtho`. |
farBits | u32 | — | The far bits input consumed by `glOrtho`. |
extern function glPolygonMode(face as u32, mode as u32) from "miniquake_native.dll" symbol "mq_gl_polygon_mode" returns voidInvokes the native `glPolygonMode` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
face | u32 | — | The face input consumed by `glPolygonMode`. |
mode | u32 | — | The mode input consumed by `glPolygonMode`. |
extern function glPopMatrix() from "miniquake_native.dll" symbol "mq_gl_pop_matrix" returns voidInvokes the native `glPopMatrix` bridge operation used by `miniquake.native`.
extern function glPushMatrix() from "miniquake_native.dll" symbol "mq_gl_push_matrix" returns voidInvokes the native `glPushMatrix` bridge operation used by `miniquake.native`.
extern function glReadPixels(x as i32, y as i32, width as i32, height as i32, format as u32, type as u32, pixels as bytes) from "miniquake_native.dll" symbol "mq_gl_read_pixels" returns voidInvokes the native `glReadPixels` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | i32 | — | The x input consumed by `glReadPixels`. |
y | i32 | — | The y input consumed by `glReadPixels`. |
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
format | u32 | — | The format input consumed by `glReadPixels`. |
type | u32 | — | The type input consumed by `glReadPixels`. |
pixels | bytes | — | The pixels input consumed by `glReadPixels`. |
extern function glRotate(angleBits as u32, xBits as u32, yBits as u32, zBits as u32) from "miniquake_native.dll" symbol "mq_gl_rotate" returns voidInvokes the native `glRotate` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
angleBits | u32 | — | The angle bits input consumed by `glRotate`. |
xBits | u32 | — | The x bits input consumed by `glRotate`. |
yBits | u32 | — | The y bits input consumed by `glRotate`. |
zBits | u32 | — | The z bits input consumed by `glRotate`. |
extern function glScale(xBits as u32, yBits as u32, zBits as u32) from "miniquake_native.dll" symbol "mq_gl_scale" returns voidInvokes the native `glScale` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
xBits | u32 | — | The x bits input consumed by `glScale`. |
yBits | u32 | — | The y bits input consumed by `glScale`. |
zBits | u32 | — | The z bits input consumed by `glScale`. |
extern function glShadeModel(mode as u32) from "miniquake_native.dll" symbol "mq_gl_shade_model" returns voidInvokes the native `glShadeModel` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | u32 | — | The mode input consumed by `glShadeModel`. |
extern function glStaticGeometryCall(keyValue as u64, passValue as i32) from "miniquake_native.dll" symbol "mq_gl_static_geometry_call" returns i32Invokes the native `glStaticGeometryCall` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
keyValue | u64 | — | The key value input consumed by `glStaticGeometryCall`. |
passValue | i32 | — | The pass value input consumed by `glStaticGeometryCall`. |
Returns: The `i32` result produced by `glStaticGeometryCall`.
extern function glStaticGeometryCallBatch(keys as bytes, byteCount as u32, passValue as i32) from "miniquake_native.dll" symbol "mq_gl_static_geometry_call_batch" returns i32Invokes the native `glStaticGeometryCallBatch` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
keys | bytes | — | The keys input consumed by `glStaticGeometryCallBatch`. |
byteCount | u32 | — | Number of entries or units to process. |
passValue | i32 | — | The pass value input consumed by `glStaticGeometryCallBatch`. |
Returns: The `i32` result produced by `glStaticGeometryCallBatch`.
extern function glStaticGeometryCallMultitextureBatch(records as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_gl_static_geometry_call_multitexture_batch" returns i32Invokes the native `glStaticGeometryCallMultitextureBatch` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
records | bytes | — | The records input consumed by `glStaticGeometryCallMultitextureBatch`. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `glStaticGeometryCallMultitextureBatch`.
extern function glStaticGeometryClear() from "miniquake_native.dll" symbol "mq_gl_static_geometry_clear" returns voidInvokes the native `glStaticGeometryClear` bridge operation used by `miniquake.native`.
extern function glStaticGeometryPrepare(keyValue as u64, passValue as i32) from "miniquake_native.dll" symbol "mq_gl_static_geometry_prepare" returns i32Invokes the native `glStaticGeometryPrepare` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
keyValue | u64 | — | The key value input consumed by `glStaticGeometryPrepare`. |
passValue | i32 | — | The pass value input consumed by `glStaticGeometryPrepare`. |
Returns: The `i32` result produced by `glStaticGeometryPrepare`.
extern function glTexcoord2(sBits as u32, tBits as u32) from "miniquake_native.dll" symbol "mq_gl_texcoord2" returns voidInvokes the native `glTexcoord2` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
sBits | u32 | — | The s bits input consumed by `glTexcoord2`. |
tBits | u32 | — | The t bits input consumed by `glTexcoord2`. |
extern function glTexEnvI(target as u32, name as u32, value as i32) from "miniquake_native.dll" symbol "mq_gl_tex_env_i" returns voidInvokes the native `glTexEnvI` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | u32 | — | The target input consumed by `glTexEnvI`. |
name | u32 | — | Stable name that identifies the requested object or option. |
value | i32 | — | Value consumed by `glTexEnvI`. |
extern function glTexImage2D(target as u32, level as i32, internalFormat as i32, width as i32, height as i32, border as i32, format as u32, type as u32, pixels as bytes) from "miniquake_native.dll" symbol "mq_gl_tex_image_2d" returns voidInvokes the native `glTexImage2D` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | u32 | — | The target input consumed by `glTexImage2D`. |
level | i32 | — | The level input consumed by `glTexImage2D`. |
internalFormat | i32 | — | The internal format input consumed by `glTexImage2D`. |
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
border | i32 | — | The border input consumed by `glTexImage2D`. |
format | u32 | — | The format input consumed by `glTexImage2D`. |
type | u32 | — | The type input consumed by `glTexImage2D`. |
pixels | bytes | — | The pixels input consumed by `glTexImage2D`. |
extern function glTexParameterI(target as u32, name as u32, value as i32) from "miniquake_native.dll" symbol "mq_gl_tex_parameter_i" returns voidInvokes the native `glTexParameterI` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | u32 | — | The target input consumed by `glTexParameterI`. |
name | u32 | — | Stable name that identifies the requested object or option. |
value | i32 | — | Value consumed by `glTexParameterI`. |
extern function glTexSubImage2D(target as u32, level as i32, xOffset as i32, yOffset as i32, width as i32, height as i32, format as u32, type as u32, pixels as bytes) from "miniquake_native.dll" symbol "mq_gl_tex_sub_image_2d" returns voidInvokes the native `glTexSubImage2D` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
target | u32 | — | The target input consumed by `glTexSubImage2D`. |
level | i32 | — | The level input consumed by `glTexSubImage2D`. |
xOffset | i32 | — | Zero-based offset of the requested data. |
yOffset | i32 | — | Zero-based offset of the requested data. |
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
format | u32 | — | The format input consumed by `glTexSubImage2D`. |
type | u32 | — | The type input consumed by `glTexSubImage2D`. |
pixels | bytes | — | The pixels input consumed by `glTexSubImage2D`. |
extern function glTranslate(xBits as u32, yBits as u32, zBits as u32) from "miniquake_native.dll" symbol "mq_gl_translate" returns voidInvokes the native `glTranslate` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
xBits | u32 | — | The x bits input consumed by `glTranslate`. |
yBits | u32 | — | The y bits input consumed by `glTranslate`. |
zBits | u32 | — | The z bits input consumed by `glTranslate`. |
extern function glVertex2(xBits as u32, yBits as u32) from "miniquake_native.dll" symbol "mq_gl_vertex2" returns voidInvokes the native `glVertex2` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
xBits | u32 | — | The x bits input consumed by `glVertex2`. |
yBits | u32 | — | The y bits input consumed by `glVertex2`. |
extern function glVertex3(xBits as u32, yBits as u32, zBits as u32) from "miniquake_native.dll" symbol "mq_gl_vertex3" returns voidInvokes the native `glVertex3` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
xBits | u32 | — | The x bits input consumed by `glVertex3`. |
yBits | u32 | — | The y bits input consumed by `glVertex3`. |
zBits | u32 | — | The z bits input consumed by `glVertex3`. |
extern function glViewport(x as i32, y as i32, width as i32, height as i32) from "miniquake_native.dll" symbol "mq_gl_viewport" returns voidInvokes the native `glViewport` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | i32 | — | The x input consumed by `glViewport`. |
y | i32 | — | The y input consumed by `glViewport`. |
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
extern function glWorldProgramAvailable() from "miniquake_native.dll" symbol "mq_gl_world_program_available" returns i32Invokes the native `glWorldProgramAvailable` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `glWorldProgramAvailable`.
extern function glWorldProgramEnable(enabled as i32) from "miniquake_native.dll" symbol "mq_gl_world_program_enable" returns voidInvokes the native `glWorldProgramEnable` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | i32 | — | Whether the optional behavior is enabled. |
extern function i32ToF32(value as i32) from "miniquake_native.dll" symbol "mq_i32_to_f32" returns u32Invokes the native `i32ToF32` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | i32 | — | Value consumed by `i32ToF32`. |
Returns: The `u32` result produced by `i32ToF32`.
function nativeTextResult(buffer, count)Win64-safe native text bridge.
The MiniLang v1.0 runtime can pass caller-owned bytes reliably, while a
direct extern `returns cstr` may truncate a high-address DLL pointer. Native
string producers therefore return a byte count and write into a MiniLang
buffer owned by the caller.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `nativeTextResult`. |
count | dynamic | — | Number of entries or units to process. |
extern function oggChannels() from "miniquake_native.dll" symbol "mq_ogg_channels" returns u32Invokes the native `oggChannels` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `oggChannels`.
extern function oggClose() from "miniquake_native.dll" symbol "mq_ogg_close" returns intInvokes the native `oggClose` bridge operation used by `miniquake.native`.
Returns: The `int` result produced by `oggClose`.
extern function oggDecode(output as bytes, frameCapacity as u32) from "miniquake_native.dll" symbol "mq_ogg_decode" returns u32Invokes the native `oggDecode` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
output | bytes | — | Destination buffer that receives decoded PCM samples. |
frameCapacity | u32 | — | The frame capacity input consumed by `oggDecode`. |
Returns: The `u32` result produced by `oggDecode`.
extern function oggFrames() from "miniquake_native.dll" symbol "mq_ogg_frames" returns u32Invokes the native `oggFrames` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `oggFrames`.
extern function oggOpen(data as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_ogg_open" returns u32Invokes the native `oggOpen` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `u32` result produced by `oggOpen`.
extern function oggOpenFile(filename as wstr) from "miniquake_native.dll" symbol "mq_ogg_open_file" returns u32Invokes the native `oggOpenFile` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | wstr | — | Path of the file to process. |
Returns: The `u32` result produced by `oggOpenFile`.
extern function oggRate() from "miniquake_native.dll" symbol "mq_ogg_rate" returns u32Invokes the native `oggRate` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `oggRate`.
extern function oggSeekStart() from "miniquake_native.dll" symbol "mq_ogg_seek_start" returns i32Invokes the native `oggSeekStart` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `oggSeekStart`.
extern function processHandleCount() from "miniquake_native.dll" symbol "mq_process_handle_count" returns u32Invokes the native `processHandleCount` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `processHandleCount`.
extern function renderAvailable(backend as i32) from "miniquake_native.dll" symbol "mq_render_available" returns i32Invokes the native `renderAvailable` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
backend | i32 | — | The backend input consumed by `renderAvailable`. |
Returns: The `i32` result produced by `renderAvailable`.
extern function renderBackend() from "miniquake_native.dll" symbol "mq_render_backend" returns i32Invokes the native `renderBackend` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `renderBackend`.
extern function renderSelect(backend as i32) from "miniquake_native.dll" symbol "mq_render_select" returns i32Invokes the native `renderSelect` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
backend | i32 | — | The backend input consumed by `renderSelect`. |
Returns: The `i32` result produced by `renderSelect`.
extern function shadowTraceBatch(rays as bytes, rayBytes as u32, results as bytes, resultBytes as u32) from "miniquake_native.dll" symbol "mq_shadow_trace_batch" returns i32Invokes the native `shadowTraceBatch` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
rays | bytes | — | The rays input consumed by `shadowTraceBatch`. |
rayBytes | u32 | — | Byte data consumed by the operation. |
results | bytes | — | The results input consumed by `shadowTraceBatch`. |
resultBytes | u32 | — | Byte data consumed by the operation. |
Returns: The `i32` result produced by `shadowTraceBatch`.
extern function shadowWorldClear() from "miniquake_native.dll" symbol "mq_shadow_world_clear" returns voidInvokes the native `shadowWorldClear` bridge operation used by `miniquake.native`.
extern function shadowWorldUpload(data as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_shadow_world_upload" returns i32Invokes the native `shadowWorldUpload` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `shadowWorldUpload`.
extern function shadowWorldUploadSurfaces(data as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_shadow_world_upload_surfaces" returns i32Invokes the native `shadowWorldUploadSurfaces` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `shadowWorldUploadSurfaces`.
function sin(value)Implements the `sin` operation for `miniquake.native` (sin).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `sin`. |
function sqrt(value)Implements the `sqrt` operation for `miniquake.native` (sqrt).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `sqrt`. |
extern function sysConsoleAlloc() from "miniquake_native.dll" symbol "mq_sys_console_alloc" returns i32Invokes the native `sysConsoleAlloc` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `sysConsoleAlloc`.
extern function sysConsoleEventPop() from "miniquake_native.dll" symbol "mq_sys_console_event_pop" returns u32Invokes the native `sysConsoleEventPop` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `sysConsoleEventPop`.
extern function sysConsoleFree() from "miniquake_native.dll" symbol "mq_sys_console_free" returns i32Invokes the native `sysConsoleFree` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `sysConsoleFree`.
extern function sysConsoleWrite(text as cstr) from "miniquake_native.dll" symbol "mq_sys_console_write" returns i32Invokes the native `sysConsoleWrite` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | cstr | — | Text to parse or process. |
Returns: The `i32` result produced by `sysConsoleWrite`.
extern function sysCounter() from "miniquake_native.dll" symbol "mq_sys_counter" returns u64Invokes the native `sysCounter` bridge operation used by `miniquake.native`.
Returns: The `u64` result produced by `sysCounter`.
extern function sysFrequency() from "miniquake_native.dll" symbol "mq_sys_frequency" returns u64Invokes the native `sysFrequency` bridge operation used by `miniquake.native`.
Returns: The `u64` result produced by `sysFrequency`.
extern function sysMakeCodeWriteable(address as u64, length as u64) from "miniquake_native.dll" symbol "mq_sys_make_code_writeable" returns i32Invokes the native `sysMakeCodeWriteable` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
address | u64 | — | Network address of the peer. |
length | u64 | — | Length of the requested data in units appropriate to the operation. |
Returns: The `i32` result produced by `sysMakeCodeWriteable`.
extern function sysSleepUntilInput(milliseconds as u32) from "miniquake_native.dll" symbol "mq_sys_sleep_until_input" returns voidInvokes the native `sysSleepUntilInput` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
milliseconds | u32 | — | The milliseconds input consumed by `sysSleepUntilInput`. |
function trunc(value)Implements the `trunc` operation for `miniquake.native` (trunc).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `trunc`. |
function udpBoundAddress(handle)Implements the `udpBoundAddress` operation for `miniquake.native` (udp bound address).
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | dynamic | — | The handle input consumed by `udpBoundAddress`. |
extern function udpBoundAddressRaw(handle as u64, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_bound_address" returns u32Invokes the native `udpBoundAddressRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `udpBoundAddressRaw`. |
output | bytes | — | Destination buffer that receives the bound address. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `udpBoundAddressRaw`.
extern function udpBoundPort(handle as u64) from "miniquake_native.dll" symbol "mq_udp_bound_port" returns u32Invokes the native `udpBoundPort` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `udpBoundPort`. |
Returns: The `u32` result produced by `udpBoundPort`.
extern function udpClose(handle as u64) from "miniquake_native.dll" symbol "mq_udp_close" returns voidInvokes the native `udpClose` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `udpClose`. |
extern function udpEnableBroadcast(handle as u64) from "miniquake_native.dll" symbol "mq_udp_enable_broadcast" returns i32Invokes the native `udpEnableBroadcast` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `udpEnableBroadcast`. |
Returns: The `i32` result produced by `udpEnableBroadcast`.
function udpHostName()Return udp host name derived from the active module state.
extern function udpHostNameRaw(output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_host_name" returns u32Invokes the native `udpHostNameRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
output | bytes | — | Destination buffer that receives the local host name. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `udpHostNameRaw`.
function udpLastAddress()Implements the `udpLastAddress` operation for `miniquake.native` (udp last address).
extern function udpLastAddressRaw(output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_last_address" returns u32Invokes the native `udpLastAddressRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
output | bytes | — | Destination buffer that receives the most recent peer address. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `udpLastAddressRaw`.
extern function udpLastError() from "miniquake_native.dll" symbol "mq_udp_last_error" returns i32Invokes the native `udpLastError` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `udpLastError`.
extern function udpLastPort() from "miniquake_native.dll" symbol "mq_udp_last_port" returns u32Invokes the native `udpLastPort` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `udpLastPort`.
function udpLocalAddress()Implements the `udpLocalAddress` operation for `miniquake.native` (udp local address).
extern function udpLocalAddressRaw(output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_local_address" returns u32Invokes the native `udpLocalAddressRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
output | bytes | — | Destination buffer that receives the local address. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `udpLocalAddressRaw`.
extern function udpOpen(port as u32) from "miniquake_native.dll" symbol "mq_udp_open" returns u64Invokes the native `udpOpen` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
port | u32 | — | The port input consumed by `udpOpen`. |
Returns: The `u64` result produced by `udpOpen`.
extern function udpOpenBound(port as u32, address as cstr) from "miniquake_native.dll" symbol "mq_udp_open_bound" returns u64Invokes the native `udpOpenBound` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
port | u32 | — | The port input consumed by `udpOpenBound`. |
address | cstr | — | Network address of the peer. |
Returns: The `u64` result produced by `udpOpenBound`.
extern function udpPeek(handle as u64) from "miniquake_native.dll" symbol "mq_udp_peek" returns i32Invokes the native `udpPeek` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `udpPeek`. |
Returns: The `i32` result produced by `udpPeek`.
extern function udpReceive(handle as u64, data as bytes, capacity as u32) from "miniquake_native.dll" symbol "mq_udp_receive" returns i32Invokes the native `udpReceive` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `udpReceive`. |
data | bytes | — | Input data consumed by the operation. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `i32` result produced by `udpReceive`.
function udpResolveName(name)Return udp resolve name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
extern function udpResolveNameRaw(name as cstr, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_resolve_name" returns u32Invokes the native `udpResolveNameRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | cstr | — | Stable name that identifies the requested object or option. |
output | bytes | — | Destination buffer that receives the resolved address. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `udpResolveNameRaw`.
function udpReverseName(address)Return udp reverse name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
address | dynamic | — | Network address of the peer. |
extern function udpReverseNameRaw(address as cstr, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_reverse_name" returns u32Invokes the native `udpReverseNameRaw` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
address | cstr | — | Network address of the peer. |
output | bytes | — | Destination buffer that receives the reverse-resolved name. |
capacity | u32 | — | Maximum number of entries the destination can hold. |
Returns: The `u32` result produced by `udpReverseNameRaw`.
extern function udpSend(handle as u64, address as cstr, port as u32, data as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_udp_send" returns i32Invokes the native `udpSend` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
handle | u64 | — | The handle input consumed by `udpSend`. |
address | cstr | — | Network address of the peer. |
port | u32 | — | The port input consumed by `udpSend`. |
data | bytes | — | Input data consumed by the operation. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `udpSend`.
extern function winActivate(active as i32, minimized as i32) from "miniquake_native.dll" symbol "mq_win_activate" returns voidInvokes the native `winActivate` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
active | i32 | — | The active input consumed by `winActivate`. |
minimized | i32 | — | The minimized input consumed by `winActivate`. |
extern function winClientHeight() from "miniquake_native.dll" symbol "mq_win_client_height" returns i32Invokes the native `winClientHeight` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winClientHeight`.
extern function winClientWidth() from "miniquake_native.dll" symbol "mq_win_client_width" returns i32Invokes the native `winClientWidth` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winClientWidth`.
extern function winConfigureDisplayMode(width as i32, height as i32, bpp as i32, frequency as i32, fullscreen as i32, useCurrent as i32) from "miniquake_native.dll" symbol "mq_win_configure_display_mode" returns i32Invokes the native `winConfigureDisplayMode` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
bpp | i32 | — | The bpp input consumed by `winConfigureDisplayMode`. |
frequency | i32 | — | The frequency input consumed by `winConfigureDisplayMode`. |
fullscreen | i32 | — | The fullscreen input consumed by `winConfigureDisplayMode`. |
useCurrent | i32 | — | The use current input consumed by `winConfigureDisplayMode`. |
Returns: The `i32` result produced by `winConfigureDisplayMode`.
extern function winContextReady() from "miniquake_native.dll" symbol "mq_win_context_ready" returns i32Invokes the native `winContextReady` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winContextReady`.
extern function winCreate(title as wstr, width as i32, height as i32, fullscreen as i32) from "miniquake_native.dll" symbol "mq_win_create" returns ptrInvokes the native `winCreate` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
title | wstr | — | The title input consumed by `winCreate`. |
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
fullscreen | i32 | — | The fullscreen input consumed by `winCreate`. |
Returns: The `ptr` result produced by `winCreate`.
extern function winCursorCenter() from "miniquake_native.dll" symbol "mq_win_cursor_center" returns i32Invokes the native `winCursorCenter` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winCursorCenter`.
extern function winCursorShow(show as i32) from "miniquake_native.dll" symbol "mq_win_cursor_show" returns voidInvokes the native `winCursorShow` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
show | i32 | — | The show input consumed by `winCursorShow`. |
extern function winDesktopHeight() from "miniquake_native.dll" symbol "mq_win_desktop_height" returns i32Invokes the native `winDesktopHeight` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winDesktopHeight`.
extern function winDesktopWidth() from "miniquake_native.dll" symbol "mq_win_desktop_width" returns i32Invokes the native `winDesktopWidth` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winDesktopWidth`.
extern function winDestroy() from "miniquake_native.dll" symbol "mq_win_destroy" returns voidInvokes the native `winDestroy` bridge operation used by `miniquake.native`.
extern function winDisplayModeBpp(index as u32) from "miniquake_native.dll" symbol "mq_win_display_mode_bpp" returns i32Invokes the native `winDisplayModeBpp` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | u32 | — | Zero-based index of the requested entry. |
Returns: The `i32` result produced by `winDisplayModeBpp`.
extern function winDisplayModeCount() from "miniquake_native.dll" symbol "mq_win_display_mode_count" returns u32Invokes the native `winDisplayModeCount` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `winDisplayModeCount`.
extern function winDisplayModeFrequency(index as u32) from "miniquake_native.dll" symbol "mq_win_display_mode_frequency" returns i32Invokes the native `winDisplayModeFrequency` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | u32 | — | Zero-based index of the requested entry. |
Returns: The `i32` result produced by `winDisplayModeFrequency`.
extern function winDisplayModeHeight(index as u32) from "miniquake_native.dll" symbol "mq_win_display_mode_height" returns i32Invokes the native `winDisplayModeHeight` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | u32 | — | Zero-based index of the requested entry. |
Returns: The `i32` result produced by `winDisplayModeHeight`.
extern function winDisplayModeWidth(index as u32) from "miniquake_native.dll" symbol "mq_win_display_mode_width" returns i32Invokes the native `winDisplayModeWidth` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | u32 | — | Zero-based index of the requested entry. |
Returns: The `i32` result produced by `winDisplayModeWidth`.
extern function winGetGammaRamp(ramp as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_win_get_gamma_ramp" returns i32Invokes the native `winGetGammaRamp` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
ramp | bytes | — | The ramp input consumed by `winGetGammaRamp`. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `winGetGammaRamp`.
extern function winHasFocus() from "miniquake_native.dll" symbol "mq_win_has_focus" returns i32Invokes the native `winHasFocus` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winHasFocus`.
extern function winInputEventPop() from "miniquake_native.dll" symbol "mq_win_input_event_pop" returns u32Invokes the native `winInputEventPop` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `winInputEventPop`.
extern function winInputTestPush(eventType as u32, code as u32, value as i32) from "miniquake_native.dll" symbol "mq_win_input_test_push" returns voidInvokes the native `winInputTestPush` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
eventType | u32 | — | The event type input consumed by `winInputTestPush`. |
code | u32 | — | The code input consumed by `winInputTestPush`. |
value | i32 | — | Value consumed by `winInputTestPush`. |
extern function winIsMinimized() from "miniquake_native.dll" symbol "mq_win_is_minimized" returns i32Invokes the native `winIsMinimized` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winIsMinimized`.
extern function winJoyAxis(axis as u32) from "miniquake_native.dll" symbol "mq_win_joy_axis" returns u32Invokes the native `winJoyAxis` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
axis | u32 | — | The axis input consumed by `winJoyAxis`. |
Returns: The `u32` result produced by `winJoyAxis`.
extern function winJoyButtonCount() from "miniquake_native.dll" symbol "mq_win_joy_button_count" returns u32Invokes the native `winJoyButtonCount` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `winJoyButtonCount`.
extern function winJoyButtons() from "miniquake_native.dll" symbol "mq_win_joy_buttons" returns u32Invokes the native `winJoyButtons` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `winJoyButtons`.
extern function winJoyHasPov() from "miniquake_native.dll" symbol "mq_win_joy_has_pov" returns i32Invokes the native `winJoyHasPov` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winJoyHasPov`.
extern function winJoyPov() from "miniquake_native.dll" symbol "mq_win_joy_pov" returns u32Invokes the native `winJoyPov` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `winJoyPov`.
extern function winJoyRead() from "miniquake_native.dll" symbol "mq_win_joy_read" returns i32Invokes the native `winJoyRead` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winJoyRead`.
extern function winJoyStartup() from "miniquake_native.dll" symbol "mq_win_joy_startup" returns i32Invokes the native `winJoyStartup` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winJoyStartup`.
extern function winJoyWarriorCurve(rawValue as i32) from "miniquake_native.dll" symbol "mq_win_joy_warrior_curve" returns i32Invokes the native `winJoyWarriorCurve` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
rawValue | i32 | — | The raw value input consumed by `winJoyWarriorCurve`. |
Returns: The `i32` result produced by `winJoyWarriorCurve`.
extern function winJoyWarriorCurveF32(rawValue as i32) from "miniquake_native.dll" symbol "mq_win_joy_warrior_curve_f32" returns u32Invokes the native `winJoyWarriorCurveF32` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
rawValue | i32 | — | The raw value input consumed by `winJoyWarriorCurveF32`. |
Returns: The `u32` result produced by `winJoyWarriorCurveF32`.
extern function winKeyDown(virtualKey as i32) from "miniquake_native.dll" symbol "mq_win_key_down" returns i32Invokes the native `winKeyDown` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
virtualKey | i32 | — | The virtual key input consumed by `winKeyDown`. |
Returns: The `i32` result produced by `winKeyDown`.
extern function winKeyPressed(virtualKey as i32) from "miniquake_native.dll" symbol "mq_win_key_pressed" returns i32Invokes the native `winKeyPressed` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
virtualKey | i32 | — | The virtual key input consumed by `winKeyPressed`. |
Returns: The `i32` result produced by `winKeyPressed`.
extern function winKeySnapshot(downStates as bytes, pressedStates as bytes, queryMask as bytes, stateCount as u32) from "miniquake_native.dll" symbol "mq_win_key_snapshot" returns i32Invokes the native `winKeySnapshot` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
downStates | bytes | — | The down states input consumed by `winKeySnapshot`. |
pressedStates | bytes | — | The pressed states input consumed by `winKeySnapshot`. |
queryMask | bytes | — | The query mask input consumed by `winKeySnapshot`. |
stateCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `winKeySnapshot`.
extern function winMakeCurrent() from "miniquake_native.dll" symbol "mq_win_make_current" returns i32Invokes the native `winMakeCurrent` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winMakeCurrent`.
extern function winMouseButtons() from "miniquake_native.dll" symbol "mq_win_mouse_buttons" returns i32Invokes the native `winMouseButtons` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winMouseButtons`.
extern function winMouseDx() from "miniquake_native.dll" symbol "mq_win_mouse_dx" returns i32Invokes the native `winMouseDx` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winMouseDx`.
extern function winMouseDy() from "miniquake_native.dll" symbol "mq_win_mouse_dy" returns i32Invokes the native `winMouseDy` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winMouseDy`.
extern function winMouseWheel() from "miniquake_native.dll" symbol "mq_win_mouse_wheel" returns i32Invokes the native `winMouseWheel` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winMouseWheel`.
extern function winPoll() from "miniquake_native.dll" symbol "mq_win_poll" returns i32Invokes the native `winPoll` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winPoll`.
extern function winResizeClient(width as i32, height as i32) from "miniquake_native.dll" symbol "mq_win_resize_client" returns i32Invokes the native `winResizeClient` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
Returns: The `i32` result produced by `winResizeClient`.
extern function winRestoreDisplayMode() from "miniquake_native.dll" symbol "mq_win_restore_display_mode" returns voidInvokes the native `winRestoreDisplayMode` bridge operation used by `miniquake.native`.
extern function winSetCursorCapture(enabled as i32) from "miniquake_native.dll" symbol "mq_win_set_cursor_capture" returns voidInvokes the native `winSetCursorCapture` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | i32 | — | Whether the optional behavior is enabled. |
extern function winSetGammaRamp(ramp as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_win_set_gamma_ramp" returns i32Invokes the native `winSetGammaRamp` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
ramp | bytes | — | The ramp input consumed by `winSetGammaRamp`. |
byteCount | u32 | — | Number of entries or units to process. |
Returns: The `i32` result produced by `winSetGammaRamp`.
extern function winSetTitle(title as wstr) from "miniquake_native.dll" symbol "mq_win_set_title" returns voidInvokes the native `winSetTitle` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
title | wstr | — | The title input consumed by `winSetTitle`. |
extern function winSleep(milliseconds as u32) from "miniquake_native.dll" symbol "mq_win_sleep" returns voidInvokes the native `winSleep` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
milliseconds | u32 | — | The milliseconds input consumed by `winSleep`. |
extern function winSwap() from "miniquake_native.dll" symbol "mq_win_swap" returns voidInvokes the native `winSwap` bridge operation used by `miniquake.native`.
extern function winTestDisplayMode(width as i32, height as i32, bpp as i32, frequency as i32) from "miniquake_native.dll" symbol "mq_win_test_display_mode" returns i32Invokes the native `winTestDisplayMode` bridge operation used by `miniquake.native`.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | i32 | — | Requested width in pixels or data units. |
height | i32 | — | Requested height in pixels or data units. |
bpp | i32 | — | The bpp input consumed by `winTestDisplayMode`. |
frequency | i32 | — | The frequency input consumed by `winTestDisplayMode`. |
Returns: The `i32` result produced by `winTestDisplayMode`.
extern function winTextPop() from "miniquake_native.dll" symbol "mq_win_text_pop" returns i32Invokes the native `winTextPop` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winTextPop`.
extern function winTicks() from "miniquake_native.dll" symbol "mq_win_ticks" returns u32Invokes the native `winTicks` bridge operation used by `miniquake.native`.
Returns: The `u32` result produced by `winTicks`.
extern function winUpdateClipCursor() from "miniquake_native.dll" symbol "mq_win_update_clip_cursor" returns i32Invokes the native `winUpdateClipCursor` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winUpdateClipCursor`.
extern function winWindowX() from "miniquake_native.dll" symbol "mq_win_window_x" returns i32Invokes the native `winWindowX` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winWindowX`.
extern function winWindowY() from "miniquake_native.dll" symbol "mq_win_window_y" returns i32Invokes the native `winWindowY` bridge operation used by `miniquake.native`.
Returns: The `i32` result produced by `winWindowY`.