MiniQuake2

src/miniquake2/native.ml

Provides miniquake2 native facilities for this project.

Package
miniquake2.native
Reachable
Yes

Declarations

atan2

function atan2(y, x)

Return the atan 2 value.

ParameterTypeDefaultDescription
ydynamic—Vertical coordinate used by the operation.
xdynamic—Horizontal coordinate used by the operation.

View source

audioCapacity

extern function audioCapacity() from "miniquake_native.dll" symbol "mq_audio_capacity" returns u32

Invokes the native audioCapacity entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

audioClose

extern function audioClose() from "miniquake_native.dll" symbol "mq_audio_close" returns void

Invokes the native audioClose entry point used by the miniquake2 native module.

View source

audioCompleted

extern function audioCompleted() from "miniquake_native.dll" symbol "mq_audio_completed" returns u32

Invokes the native audioCompleted entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

audioIsOpen

extern function audioIsOpen() from "miniquake_native.dll" symbol "mq_audio_is_open" returns i32

Invokes the native audioIsOpen entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

audioOpen

extern function audioOpen(sampleRate as u32, channels as u32, bitsPerSample as u32) from "miniquake_native.dll" symbol "mq_audio_open" returns i32

Invokes the native audioOpen entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
sampleRateu32—sampleRate value consumed by this operation.
channelsu32—channels value consumed by this operation.
bitsPerSampleu32—bitsPerSample value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

audioQueued

extern function audioQueued() from "miniquake_native.dll" symbol "mq_audio_queued" returns u32

Invokes the native audioQueued entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

audioReset

extern function audioReset() from "miniquake_native.dll" symbol "mq_audio_reset" returns i32

Invokes the native audioReset entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

audioSubmit

extern function audioSubmit(data as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_audio_submit" returns i32

Invokes the native audioSubmit entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
databytes—Input data consumed by the operation.
byteCountu32—Number of byte to process.

Returns: Native i32 result produced by the call.

View source

audioSubmitted

extern function audioSubmitted() from "miniquake_native.dll" symbol "mq_audio_submitted" returns u32

Invokes the native audioSubmitted entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

audioUnderruns

extern function audioUnderruns() from "miniquake_native.dll" symbol "mq_audio_underruns" returns u32

Invokes the native audioUnderruns entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

bitsFloat

function bitsFloat(bits)

Return the bits float value.

ParameterTypeDefaultDescription
bitsdynamic—bits value consumed by this operation.

View source

cos

function cos(value)

Return the cos value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

f32Atan2

extern function f32Atan2(yBits as u32, xBits as u32) from "miniquake_native.dll" symbol "mq_f32_atan2" returns u32

Invokes the native f32Atan2 entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
yBitsu32—yBits value consumed by this operation.
xBitsu32—xBits value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

f32Cos

extern function f32Cos(bits as u32) from "miniquake_native.dll" symbol "mq_f32_cos" returns u32

Invokes the native f32Cos entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
bitsu32—bits value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

f32FromRaw

extern function f32FromRaw(rawValue as u64) from "miniquake_native.dll" symbol "mq_f32_from_ml_raw" returns u32

Invokes the native f32FromRaw entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
rawValueu64—rawValue value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

f32Sin

extern function f32Sin(bits as u32) from "miniquake_native.dll" symbol "mq_f32_sin" returns u32

Invokes the native f32Sin entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
bitsu32—bits value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

f32ToRaw

extern function f32ToRaw(bits as u32) from "miniquake_native.dll" symbol "mq_f32_to_ml_raw" returns u64

Invokes the native f32ToRaw entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
bitsu32—bits value consumed by this operation.

Returns: Native u64 result produced by the call.

View source

floatBits

function floatBits(value)

Return the float bits value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

glActiveTexture

extern function glActiveTexture(unit as i32) from "miniquake_native.dll" symbol "mq_gl_active_texture" returns void

Invokes the native glActiveTexture entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
uniti32—unit value consumed by this operation.

View source

glAlphaFunc

extern function glAlphaFunc(functionName as u32, referenceBits as u32) from "miniquake_native.dll" symbol "mq_gl_alpha_func" returns void

Invokes the native glAlphaFunc entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
functionNameu32—functionName value consumed by this operation.
referenceBitsu32—referenceBits value consumed by this operation.

View source

glBegin

extern function glBegin(mode as u32) from "miniquake_native.dll" symbol "mq_gl_begin" returns void

Fixed-function OpenGL 1.1 bridge used by the Quake II refexport adapter. Floats cross the ABI as their exact IEEE-754 bit pattern; this is the same narrow bridge used and exercised by MiniQuake's renderer.

ParameterTypeDefaultDescription
modeu32—Mode selecting the requested behavior.

View source

glBindTexture

extern function glBindTexture(target as u32, texture as u32) from "miniquake_native.dll" symbol "mq_gl_bind_texture" returns void

Invokes the native glBindTexture entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
targetu32—target value consumed by this operation.
textureu32—texture value consumed by this operation.

View source

glBlendFunc

extern function glBlendFunc(source as u32, destination as u32) from "miniquake_native.dll" symbol "mq_gl_blend_func" returns void

Invokes the native glBlendFunc entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
sourceu32—source value consumed by this operation.
destinationu32—destination value consumed by this operation.

View source

glClear

extern function glClear(mask as u32) from "miniquake_native.dll" symbol "mq_gl_clear" returns void

Invokes the native glClear entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
masku32—mask value consumed by this operation.

View source

glClearColor

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 void

Invokes the native glClearColor entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
redBitsu32—redBits value consumed by this operation.
greenBitsu32—greenBits value consumed by this operation.
blueBitsu32—blueBits value consumed by this operation.
alphaBitsu32—alphaBits value consumed by this operation.

View source

glColor4ub

extern function glColor4ub(red as u32, green as u32, blue as u32, alpha as u32) from "miniquake_native.dll" symbol "mq_gl_color4ub" returns void

Invokes the native glColor4ub entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
redu32—red value consumed by this operation.
greenu32—green value consumed by this operation.
blueu32—blue value consumed by this operation.
alphau32—alpha value consumed by this operation.

View source

glCullFace

extern function glCullFace(mode as u32) from "miniquake_native.dll" symbol "mq_gl_cull_face" returns void

Invokes the native glCullFace entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
modeu32—Mode selecting the requested behavior.

View source

glDeleteTextures

extern function glDeleteTextures(count as i32, textureIds as bytes) from "miniquake_native.dll" symbol "mq_gl_delete_textures" returns void

Invokes the native glDeleteTextures entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
counti32—Number of items or units to process.
textureIdsbytes—textureIds value consumed by this operation.

View source

glDepthFunc

extern function glDepthFunc(functionName as u32) from "miniquake_native.dll" symbol "mq_gl_depth_func" returns void

Invokes the native glDepthFunc entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
functionNameu32—functionName value consumed by this operation.

View source

glDepthMask

extern function glDepthMask(enabled as i32) from "miniquake_native.dll" symbol "mq_gl_depth_mask" returns void

Invokes the native glDepthMask entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
enabledi32—enabled value consumed by this operation.

View source

glDepthRange

extern function glDepthRange(nearBits as u32, farBits as u32) from "miniquake_native.dll" symbol "mq_gl_depth_range" returns void

Invokes the native glDepthRange entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
nearBitsu32—nearBits value consumed by this operation.
farBitsu32—farBits value consumed by this operation.

View source

glDisable

extern function glDisable(capability as u32) from "miniquake_native.dll" symbol "mq_gl_disable" returns void

Invokes the native glDisable entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
capabilityu32—capability value consumed by this operation.

View source

glDrawAliasRgbEnd

extern function glDrawAliasRgbEnd() from "miniquake_native.dll" symbol "mq_gl_draw_alias_rgb_end" returns void

Invokes the native glDrawAliasRgbEnd entry point used by the miniquake2 native module.

View source

glDrawMd2Rgb

extern function glDrawMd2Rgb(data as bytes, byteCount as u32, frameIndex as u32, oldFrameIndex as u32, backLerp as u32, shadeDots as bytes, shadeDotCount as u32, normalVectors as bytes, normalCount as u32, geometryKey as u64, geometryState as u32, shadeState as u32, shadeRed as u32, shadeGreen as u32, shadeBlue as u32, alpha as u32) from "miniquake_native.dll" symbol "mq_gl_draw_md2_rgb" returns i32

Invokes the native glDrawMd2Rgb entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
databytes—Input data consumed by the operation.
byteCountu32—Number of byte to process.
frameIndexu32—Zero-based index of frame.
oldFrameIndexu32—Zero-based index of old frame.
backLerpu32—backLerp value consumed by this operation.
shadeDotsbytes—shadeDots value consumed by this operation.
shadeDotCountu32—Number of shade dot to process.
normalVectorsbytes—normalVectors value consumed by this operation.
normalCountu32—Number of normal to process.
geometryKeyu64—geometryKey value consumed by this operation.
geometryStateu32—geometryState value consumed by this operation.
shadeStateu32—shadeState value consumed by this operation.
shadeRedu32—shadeRed value consumed by this operation.
shadeGreenu32—shadeGreen value consumed by this operation.
shadeBlueu32—shadeBlue value consumed by this operation.
alphau32—alpha value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

glDrawMd2Shadow

extern function glDrawMd2Shadow(data as bytes, byteCount as u32, frameIndex as u32, oldFrameIndex as u32, backLerp as u32, normalVectors as bytes, normalCount as u32, geometryKey as u64, geometryState as u32, triangleCount as u32, shadeX as u32, shadeY as u32, lightHeight as u32) from "miniquake_native.dll" symbol "mq_gl_draw_md2_shadow" returns i32

Invokes the native glDrawMd2Shadow entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
databytes—Input data consumed by the operation.
byteCountu32—Number of byte to process.
frameIndexu32—Zero-based index of frame.
oldFrameIndexu32—Zero-based index of old frame.
backLerpu32—backLerp value consumed by this operation.
normalVectorsbytes—normalVectors value consumed by this operation.
normalCountu32—Number of normal to process.
geometryKeyu64—geometryKey value consumed by this operation.
geometryStateu32—geometryState value consumed by this operation.
triangleCountu32—Number of triangle to process.
shadeXu32—shadeX value consumed by this operation.
shadeYu32—shadeY value consumed by this operation.
lightHeightu32—lightHeight value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

glDrawMd2ShadowSoft

extern function glDrawMd2ShadowSoft(data as bytes, byteCount as u32, frameIndex as u32, oldFrameIndex as u32, backLerp as u32, normalVectors as bytes, normalCount as u32, geometryKey as u64, geometryState as u32, triangleCount as u32, shadeX as u32, shadeY as u32, lightHeight as u32) from "miniquake_native.dll" symbol "mq_gl_draw_md2_shadow_soft" returns i32

Invokes the native glDrawMd2ShadowSoft entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
databytes—Input data consumed by the operation.
byteCountu32—Number of byte to process.
frameIndexu32—Zero-based index of frame.
oldFrameIndexu32—Zero-based index of old frame.
backLerpu32—backLerp value consumed by this operation.
normalVectorsbytes—normalVectors value consumed by this operation.
normalCountu32—Number of normal to process.
geometryKeyu64—geometryKey value consumed by this operation.
geometryStateu32—geometryState value consumed by this operation.
triangleCountu32—Number of triangle to process.
shadeXu32—shadeX value consumed by this operation.
shadeYu32—shadeY value consumed by this operation.
lightHeightu32—lightHeight value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

glDrawParticleBatch

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 i32

Invokes the native glDrawParticleBatch entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
databytes—Input data consumed by the operation.
byteCountu32—Number of byte to process.
viewOriginXu32—viewOriginX value consumed by this operation.
viewOriginYu32—viewOriginY value consumed by this operation.
viewOriginZu32—viewOriginZ value consumed by this operation.
viewForwardXu32—viewForwardX value consumed by this operation.
viewForwardYu32—viewForwardY value consumed by this operation.
viewForwardZu32—viewForwardZ value consumed by this operation.
viewUpXu32—viewUpX value consumed by this operation.
viewUpYu32—viewUpY value consumed by this operation.
viewUpZu32—viewUpZ value consumed by this operation.
viewRightXu32—viewRightX value consumed by this operation.
viewRightYu32—viewRightY value consumed by this operation.
viewRightZu32—viewRightZ value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

glDrawParticleBatchStyled

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 i32

Invokes the native glDrawParticleBatchStyled entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
databytes—Input data consumed by the operation.
byteCountu32—Number of byte to process.
viewOriginXu32—viewOriginX value consumed by this operation.
viewOriginYu32—viewOriginY value consumed by this operation.
viewOriginZu32—viewOriginZ value consumed by this operation.
viewForwardXu32—viewForwardX value consumed by this operation.
viewForwardYu32—viewForwardY value consumed by this operation.
viewForwardZu32—viewForwardZ value consumed by this operation.
viewUpXu32—viewUpX value consumed by this operation.
viewUpYu32—viewUpY value consumed by this operation.
viewUpZu32—viewUpZ value consumed by this operation.
viewRightXu32—viewRightX value consumed by this operation.
viewRightYu32—viewRightY value consumed by this operation.
viewRightZu32—viewRightZ value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

glEnable

extern function glEnable(capability as u32) from "miniquake_native.dll" symbol "mq_gl_enable" returns void

Invokes the native glEnable entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
capabilityu32—capability value consumed by this operation.

View source

glEnd

extern function glEnd() from "miniquake_native.dll" symbol "mq_gl_end" returns void

Invokes the native glEnd entry point used by the miniquake2 native module.

View source

glFinish

extern function glFinish() from "miniquake_native.dll" symbol "mq_gl_finish" returns void

Invokes the native glFinish entry point used by the miniquake2 native module.

View source

glFlush

extern function glFlush() from "miniquake_native.dll" symbol "mq_gl_flush" returns void

Invokes the native glFlush entry point used by the miniquake2 native module.

View source

glFrustum

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 void

Invokes the native glFrustum entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
leftBitsu32—leftBits value consumed by this operation.
rightBitsu32—rightBits value consumed by this operation.
bottomBitsu32—bottomBits value consumed by this operation.
topBitsu32—topBits value consumed by this operation.
nearBitsu32—nearBits value consumed by this operation.
farBitsu32—farBits value consumed by this operation.

View source

glGetError

extern function glGetError() from "miniquake_native.dll" symbol "mq_gl_get_error" returns u32

Invokes the native glGetError entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

glGetString

function glGetString(name)

Return gl string.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

glGetStringRaw

extern function glGetStringRaw(name as u32, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_gl_get_string" returns u32

Invokes the native glGetStringRaw entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
nameu32—Name of the affected item.
outputbytes—Output collection or buffer populated by the operation.
capacityu32—capacity value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

glLoadIdentity

extern function glLoadIdentity() from "miniquake_native.dll" symbol "mq_gl_load_identity" returns void

Invokes the native glLoadIdentity entry point used by the miniquake2 native module.

View source

glMatrixMode

extern function glMatrixMode(mode as u32) from "miniquake_native.dll" symbol "mq_gl_matrix_mode" returns void

Invokes the native glMatrixMode entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
modeu32—Mode selecting the requested behavior.

View source

glMultiTexCoord2

extern function glMultiTexCoord2(unit as i32, sBits as u32, tBits as u32) from "miniquake_native.dll" symbol "mq_gl_multi_tex_coord2" returns void

Invokes the native glMultiTexCoord2 entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
uniti32—unit value consumed by this operation.
sBitsu32—sBits value consumed by this operation.
tBitsu32—tBits value consumed by this operation.

View source

glMultitextureAvailable

extern function glMultitextureAvailable() from "miniquake_native.dll" symbol "mq_gl_multitexture_available" returns i32

Invokes the native glMultitextureAvailable entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

glOrtho

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 void

Invokes the native glOrtho entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
leftBitsu32—leftBits value consumed by this operation.
rightBitsu32—rightBits value consumed by this operation.
bottomBitsu32—bottomBits value consumed by this operation.
topBitsu32—topBits value consumed by this operation.
nearBitsu32—nearBits value consumed by this operation.
farBitsu32—farBits value consumed by this operation.

View source

glPopMatrix

extern function glPopMatrix() from "miniquake_native.dll" symbol "mq_gl_pop_matrix" returns void

Invokes the native glPopMatrix entry point used by the miniquake2 native module.

View source

glPushMatrix

extern function glPushMatrix() from "miniquake_native.dll" symbol "mq_gl_push_matrix" returns void

Invokes the native glPushMatrix entry point used by the miniquake2 native module.

View source

glReadPixels

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 void

Invokes the native glReadPixels entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
xi32—Horizontal coordinate used by the operation.
yi32—Vertical coordinate used by the operation.
widthi32—Width in the coordinate or storage units used by the caller.
heighti32—Height in the coordinate or storage units used by the caller.
formatu32—format value consumed by this operation.
typeu32—type value consumed by this operation.
pixelsbytes—pixels value consumed by this operation.

View source

glRotate

extern function glRotate(angleBits as u32, xBits as u32, yBits as u32, zBits as u32) from "miniquake_native.dll" symbol "mq_gl_rotate" returns void

Invokes the native glRotate entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
angleBitsu32—angleBits value consumed by this operation.
xBitsu32—xBits value consumed by this operation.
yBitsu32—yBits value consumed by this operation.
zBitsu32—zBits value consumed by this operation.

View source

glScale

extern function glScale(xBits as u32, yBits as u32, zBits as u32) from "miniquake_native.dll" symbol "mq_gl_scale" returns void

Invokes the native glScale entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
xBitsu32—xBits value consumed by this operation.
yBitsu32—yBits value consumed by this operation.
zBitsu32—zBits value consumed by this operation.

View source

glStaticGeometryCall

extern function glStaticGeometryCall(keyValue as u64, passValue as i32) from "miniquake_native.dll" symbol "mq_gl_static_geometry_call" returns i32

Invokes the native glStaticGeometryCall entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
keyValueu64—keyValue value consumed by this operation.
passValuei32—passValue value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

glStaticGeometryCallBatch

extern function glStaticGeometryCallBatch(keys as bytes, byteCount as u32, passValue as i32) from "miniquake_native.dll" symbol "mq_gl_static_geometry_call_batch" returns i32

Invokes the native glStaticGeometryCallBatch entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
keysbytes—keys value consumed by this operation.
byteCountu32—Number of byte to process.
passValuei32—passValue value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

glStaticGeometryCallMultitextureBatch

extern function glStaticGeometryCallMultitextureBatch(records as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_gl_static_geometry_call_multitexture_batch" returns i32

Invokes the native glStaticGeometryCallMultitextureBatch entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
recordsbytes—records value consumed by this operation.
byteCountu32—Number of byte to process.

Returns: Native i32 result produced by the call.

View source

glStaticGeometryClear

extern function glStaticGeometryClear() from "miniquake_native.dll" symbol "mq_gl_static_geometry_clear" returns void

Invokes the native glStaticGeometryClear entry point used by the miniquake2 native module.

View source

glStaticGeometryPrepare

extern function glStaticGeometryPrepare(keyValue as u64, passValue as i32) from "miniquake_native.dll" symbol "mq_gl_static_geometry_prepare" returns i32

Invokes the native glStaticGeometryPrepare entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
keyValueu64—keyValue value consumed by this operation.
passValuei32—passValue value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

glTexcoord2

extern function glTexcoord2(sBits as u32, tBits as u32) from "miniquake_native.dll" symbol "mq_gl_texcoord2" returns void

Invokes the native glTexcoord2 entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
sBitsu32—sBits value consumed by this operation.
tBitsu32—tBits value consumed by this operation.

View source

glTexEnvI

extern function glTexEnvI(target as u32, name as u32, value as i32) from "miniquake_native.dll" symbol "mq_gl_tex_env_i" returns void

Invokes the native glTexEnvI entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
targetu32—target value consumed by this operation.
nameu32—Name of the affected item.
valuei32—Value consumed or transformed by the operation.

View source

glTexImage2D

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 void

Invokes the native glTexImage2D entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
targetu32—target value consumed by this operation.
leveli32—level value consumed by this operation.
internalFormati32—internalFormat value consumed by this operation.
widthi32—Width in the coordinate or storage units used by the caller.
heighti32—Height in the coordinate or storage units used by the caller.
borderi32—border value consumed by this operation.
formatu32—format value consumed by this operation.
typeu32—type value consumed by this operation.
pixelsbytes—pixels value consumed by this operation.

View source

glTexParameterI

extern function glTexParameterI(target as u32, name as u32, value as i32) from "miniquake_native.dll" symbol "mq_gl_tex_parameter_i" returns void

Invokes the native glTexParameterI entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
targetu32—target value consumed by this operation.
nameu32—Name of the affected item.
valuei32—Value consumed or transformed by the operation.

View source

glTexSubImage2D

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 void

Invokes the native glTexSubImage2D entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
targetu32—target value consumed by this operation.
leveli32—level value consumed by this operation.
xOffseti32—xOffset value consumed by this operation.
yOffseti32—yOffset value consumed by this operation.
widthi32—Width in the coordinate or storage units used by the caller.
heighti32—Height in the coordinate or storage units used by the caller.
formatu32—format value consumed by this operation.
typeu32—type value consumed by this operation.
pixelsbytes—pixels value consumed by this operation.

View source

glTranslate

extern function glTranslate(xBits as u32, yBits as u32, zBits as u32) from "miniquake_native.dll" symbol "mq_gl_translate" returns void

Invokes the native glTranslate entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
xBitsu32—xBits value consumed by this operation.
yBitsu32—yBits value consumed by this operation.
zBitsu32—zBits value consumed by this operation.

View source

glVertex2

extern function glVertex2(xBits as u32, yBits as u32) from "miniquake_native.dll" symbol "mq_gl_vertex2" returns void

Invokes the native glVertex2 entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
xBitsu32—xBits value consumed by this operation.
yBitsu32—yBits value consumed by this operation.

View source

glVertex3

extern function glVertex3(xBits as u32, yBits as u32, zBits as u32) from "miniquake_native.dll" symbol "mq_gl_vertex3" returns void

Invokes the native glVertex3 entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
xBitsu32—xBits value consumed by this operation.
yBitsu32—yBits value consumed by this operation.
zBitsu32—zBits value consumed by this operation.

View source

glViewport

extern function glViewport(x as i32, y as i32, width as i32, height as i32) from "miniquake_native.dll" symbol "mq_gl_viewport" returns void

Invokes the native glViewport entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
xi32—Horizontal coordinate used by the operation.
yi32—Vertical coordinate used by the operation.
widthi32—Width in the coordinate or storage units used by the caller.
heighti32—Height in the coordinate or storage units used by the caller.

View source

oggChannels

extern function oggChannels() from "miniquake_native.dll" symbol "mq_ogg_channels" returns u32

Invokes the native oggChannels entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

oggClose

extern function oggClose() from "miniquake_native.dll" symbol "mq_ogg_close" returns void

Invokes the native oggClose entry point used by the miniquake2 native module.

View source

oggDecode

extern function oggDecode(output as bytes, frameCapacity as u32) from "miniquake_native.dll" symbol "mq_ogg_decode" returns u32

Invokes the native oggDecode entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
outputbytes—Output collection or buffer populated by the operation.
frameCapacityu32—frameCapacity value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

oggFrames

extern function oggFrames() from "miniquake_native.dll" symbol "mq_ogg_frames" returns u32

Invokes the native oggFrames entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

oggOpen

extern function oggOpen(data as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_ogg_open" returns u32

Invokes the native oggOpen entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
databytes—Input data consumed by the operation.
byteCountu32—Number of byte to process.

Returns: Native u32 result produced by the call.

View source

oggOpenFile

extern function oggOpenFile(filename as wstr) from "miniquake_native.dll" symbol "mq_ogg_open_file" returns u32

Invokes the native oggOpenFile entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
filenamewstr—filename value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

oggRate

extern function oggRate() from "miniquake_native.dll" symbol "mq_ogg_rate" returns u32

Invokes the native oggRate entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

oggSeekStart

extern function oggSeekStart() from "miniquake_native.dll" symbol "mq_ogg_seek_start" returns i32

Invokes the native oggSeekStart entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

processHandleCount

extern function processHandleCount() from "miniquake_native.dll" symbol "mq_process_handle_count" returns u32

Invokes the native processHandleCount entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

sin

function sin(value)

Return the sin value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

sysConsoleAlloc

extern function sysConsoleAlloc() from "miniquake_native.dll" symbol "mq_sys_console_alloc" returns i32

Invokes the native sysConsoleAlloc entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

sysConsoleEventPop

extern function sysConsoleEventPop() from "miniquake_native.dll" symbol "mq_sys_console_event_pop" returns u32

Invokes the native sysConsoleEventPop entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

sysConsoleFree

extern function sysConsoleFree() from "miniquake_native.dll" symbol "mq_sys_console_free" returns i32

Invokes the native sysConsoleFree entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

sysConsoleWrite

extern function sysConsoleWrite(text as cstr) from "miniquake_native.dll" symbol "mq_sys_console_write" returns i32

Invokes the native sysConsoleWrite entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
textcstr—Text consumed by the operation.

Returns: Native i32 result produced by the call.

View source

sysCounter

extern function sysCounter() from "miniquake_native.dll" symbol "mq_sys_counter" returns u64

Invokes the native sysCounter entry point used by the miniquake2 native module.

Returns: Native u64 result produced by the call.

View source

sysFrequency

extern function sysFrequency() from "miniquake_native.dll" symbol "mq_sys_frequency" returns u64

Invokes the native sysFrequency entry point used by the miniquake2 native module.

Returns: Native u64 result produced by the call.

View source

sysSleepUntilInput

extern function sysSleepUntilInput(milliseconds as u32) from "miniquake_native.dll" symbol "mq_sys_sleep_until_input" returns void

Invokes the native sysSleepUntilInput entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
millisecondsu32—milliseconds value consumed by this operation.

View source

textResult

function textResult(buffer, count)

Return the text result value.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
countdynamic—Number of items or units to process.

View source

udpBoundAddress

function udpBoundAddress(handle)

Return the udp bound address value.

ParameterTypeDefaultDescription
handledynamic—Native or runtime handle used by the operation.

View source

udpBoundAddressRaw

extern function udpBoundAddressRaw(handle as u64, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_bound_address" returns u32

Invokes the native udpBoundAddressRaw entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
handleu64—Native or runtime handle used by the operation.
outputbytes—Output collection or buffer populated by the operation.
capacityu32—capacity value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

udpBoundPort

extern function udpBoundPort(handle as u64) from "miniquake_native.dll" symbol "mq_udp_bound_port" returns u32

Invokes the native udpBoundPort entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
handleu64—Native or runtime handle used by the operation.

Returns: Native u32 result produced by the call.

View source

udpClose

extern function udpClose(handle as u64) from "miniquake_native.dll" symbol "mq_udp_close" returns void

Invokes the native udpClose entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
handleu64—Native or runtime handle used by the operation.

View source

udpEnableBroadcast

extern function udpEnableBroadcast(handle as u64) from "miniquake_native.dll" symbol "mq_udp_enable_broadcast" returns i32

Invokes the native udpEnableBroadcast entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
handleu64—Native or runtime handle used by the operation.

Returns: Native i32 result produced by the call.

View source

udpLastAddress

function udpLastAddress()

Return the udp last address value.

View source

udpLastAddressRaw

extern function udpLastAddressRaw(output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_last_address" returns u32

Invokes the native udpLastAddressRaw entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
outputbytes—Output collection or buffer populated by the operation.
capacityu32—capacity value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

udpLastError

extern function udpLastError() from "miniquake_native.dll" symbol "mq_udp_last_error" returns i32

Invokes the native udpLastError entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

udpLastPort

extern function udpLastPort() from "miniquake_native.dll" symbol "mq_udp_last_port" returns u32

Invokes the native udpLastPort entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

udpOpenBound

extern function udpOpenBound(port as u32, address as cstr) from "miniquake_native.dll" symbol "mq_udp_open_bound" returns u64

Invokes the native udpOpenBound entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
portu32—port value consumed by this operation.
addresscstr—address value consumed by this operation.

Returns: Native u64 result produced by the call.

View source

udpPeek

extern function udpPeek(handle as u64) from "miniquake_native.dll" symbol "mq_udp_peek" returns i32

Invokes the native udpPeek entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
handleu64—Native or runtime handle used by the operation.

Returns: Native i32 result produced by the call.

View source

udpReceive

extern function udpReceive(handle as u64, data as bytes, capacity as u32) from "miniquake_native.dll" symbol "mq_udp_receive" returns i32

Invokes the native udpReceive entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
handleu64—Native or runtime handle used by the operation.
databytes—Input data consumed by the operation.
capacityu32—capacity value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

udpResolveName

function udpResolveName(name)

Resolve udp name.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

udpResolveNameRaw

extern function udpResolveNameRaw(name as cstr, output as bytes, capacity as u32) from "miniquake_text.dll" symbol "mqt_udp_resolve_name" returns u32

Invokes the native udpResolveNameRaw entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
namecstr—Name of the affected item.
outputbytes—Output collection or buffer populated by the operation.
capacityu32—capacity value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

udpSend

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 i32

Invokes the native udpSend entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
handleu64—Native or runtime handle used by the operation.
addresscstr—address value consumed by this operation.
portu32—port value consumed by this operation.
databytes—Input data consumed by the operation.
byteCountu32—Number of byte to process.

Returns: Native i32 result produced by the call.

View source

winClientHeight

extern function winClientHeight() from "miniquake_native.dll" symbol "mq_win_client_height" returns i32

Invokes the native winClientHeight entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winClientWidth

extern function winClientWidth() from "miniquake_native.dll" symbol "mq_win_client_width" returns i32

Invokes the native winClientWidth entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winConfigureDisplayMode

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 i32

Invokes the native winConfigureDisplayMode entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
widthi32—Width in the coordinate or storage units used by the caller.
heighti32—Height in the coordinate or storage units used by the caller.
bppi32—bpp value consumed by this operation.
frequencyi32—frequency value consumed by this operation.
fullscreeni32—fullscreen value consumed by this operation.
useCurrenti32—useCurrent value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

winCreate

extern function winCreate(title as wstr, width as i32, height as i32, fullscreen as i32) from "miniquake_native.dll" symbol "mq_win_create" returns ptr

Invokes the native winCreate entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
titlewstr—Human-readable title presented to the user.
widthi32—Width in the coordinate or storage units used by the caller.
heighti32—Height in the coordinate or storage units used by the caller.
fullscreeni32—fullscreen value consumed by this operation.

Returns: Native ptr result produced by the call.

View source

winDesktopHeight

extern function winDesktopHeight() from "miniquake_native.dll" symbol "mq_win_desktop_height" returns i32

Invokes the native winDesktopHeight entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winDesktopWidth

extern function winDesktopWidth() from "miniquake_native.dll" symbol "mq_win_desktop_width" returns i32

Invokes the native winDesktopWidth entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winDestroy

extern function winDestroy() from "miniquake_native.dll" symbol "mq_win_destroy" returns void

Invokes the native winDestroy entry point used by the miniquake2 native module.

View source

winGetGammaRamp

extern function winGetGammaRamp(ramp as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_win_get_gamma_ramp" returns i32

Invokes the native winGetGammaRamp entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
rampbytes—ramp value consumed by this operation.
byteCountu32—Number of byte to process.

Returns: Native i32 result produced by the call.

View source

winHasFocus

extern function winHasFocus() from "miniquake_native.dll" symbol "mq_win_has_focus" returns i32

Invokes the native winHasFocus entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winInputEventPop

extern function winInputEventPop() from "miniquake_native.dll" symbol "mq_win_input_event_pop" returns u32

Invokes the native winInputEventPop entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

winJoyAxis

extern function winJoyAxis(axis as u32) from "miniquake_native.dll" symbol "mq_win_joy_axis" returns u32

Invokes the native winJoyAxis entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
axisu32—axis value consumed by this operation.

Returns: Native u32 result produced by the call.

View source

winJoyButtonCount

extern function winJoyButtonCount() from "miniquake_native.dll" symbol "mq_win_joy_button_count" returns u32

Invokes the native winJoyButtonCount entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

winJoyButtons

extern function winJoyButtons() from "miniquake_native.dll" symbol "mq_win_joy_buttons" returns u32

Invokes the native winJoyButtons entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

winJoyHasPov

extern function winJoyHasPov() from "miniquake_native.dll" symbol "mq_win_joy_has_pov" returns i32

Invokes the native winJoyHasPov entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winJoyPov

extern function winJoyPov() from "miniquake_native.dll" symbol "mq_win_joy_pov" returns u32

Invokes the native winJoyPov entry point used by the miniquake2 native module.

Returns: Native u32 result produced by the call.

View source

winJoyRead

extern function winJoyRead() from "miniquake_native.dll" symbol "mq_win_joy_read" returns i32

Invokes the native winJoyRead entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winJoyStartup

extern function winJoyStartup() from "miniquake_native.dll" symbol "mq_win_joy_startup" returns i32

Invokes the native winJoyStartup entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winMouseButtons

extern function winMouseButtons() from "miniquake_native.dll" symbol "mq_win_mouse_buttons" returns i32

Invokes the native winMouseButtons entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winMouseDx

extern function winMouseDx() from "miniquake_native.dll" symbol "mq_win_mouse_dx" returns i32

Invokes the native winMouseDx entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winMouseDy

extern function winMouseDy() from "miniquake_native.dll" symbol "mq_win_mouse_dy" returns i32

Invokes the native winMouseDy entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winMouseWheel

extern function winMouseWheel() from "miniquake_native.dll" symbol "mq_win_mouse_wheel" returns i32

Invokes the native winMouseWheel entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winPoll

extern function winPoll() from "miniquake_native.dll" symbol "mq_win_poll" returns i32

Invokes the native winPoll entry point used by the miniquake2 native module.

Returns: Native i32 result produced by the call.

View source

winResizeClient

extern function winResizeClient(width as i32, height as i32) from "miniquake_native.dll" symbol "mq_win_resize_client" returns i32

Invokes the native winResizeClient entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
widthi32—Width in the coordinate or storage units used by the caller.
heighti32—Height in the coordinate or storage units used by the caller.

Returns: Native i32 result produced by the call.

View source

winRestoreDisplayMode

extern function winRestoreDisplayMode() from "miniquake_native.dll" symbol "mq_win_restore_display_mode" returns void

Invokes the native winRestoreDisplayMode entry point used by the miniquake2 native module.

View source

winSetCursorCapture

extern function winSetCursorCapture(enabled as i32) from "miniquake_native.dll" symbol "mq_win_set_cursor_capture" returns void

Invokes the native winSetCursorCapture entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
enabledi32—enabled value consumed by this operation.

View source

winSetGammaRamp

extern function winSetGammaRamp(ramp as bytes, byteCount as u32) from "miniquake_native.dll" symbol "mq_win_set_gamma_ramp" returns i32

Invokes the native winSetGammaRamp entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
rampbytes—ramp value consumed by this operation.
byteCountu32—Number of byte to process.

Returns: Native i32 result produced by the call.

View source

winSetSwapInterval

extern function winSetSwapInterval(interval as i32) from "miniquake_native.dll" symbol "mq_win_set_swap_interval" returns i32

Invokes the native winSetSwapInterval entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
intervali32—interval value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

winSetTitle

extern function winSetTitle(title as wstr) from "miniquake_native.dll" symbol "mq_win_set_title" returns void

Invokes the native winSetTitle entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
titlewstr—Human-readable title presented to the user.

View source

winSleep

extern function winSleep(milliseconds as u32) from "miniquake_native.dll" symbol "mq_win_sleep" returns void

Invokes the native winSleep entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
millisecondsu32—milliseconds value consumed by this operation.

View source

winSwap

extern function winSwap() from "miniquake_native.dll" symbol "mq_win_swap" returns void

Invokes the native winSwap entry point used by the miniquake2 native module.

View source

winTestDisplayMode

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 i32

Invokes the native winTestDisplayMode entry point used by the miniquake2 native module.

ParameterTypeDefaultDescription
widthi32—Width in the coordinate or storage units used by the caller.
heighti32—Height in the coordinate or storage units used by the caller.
bppi32—bpp value consumed by this operation.
frequencyi32—frequency value consumed by this operation.

Returns: Native i32 result produced by the call.

View source