MiniQuake

src/miniquake/render/gl_rmisc.ml

Package
miniquake.render.gl_rmisc
Reachable
No

Imports

Declarations

D_FlushCaches

function D_FlushCaches()

Mirror Quake's D_FlushCaches routine and its observable state changes.

View source

envmap

envmap

Tracks the module-level envmap state owned by `miniquake.render.gl_rmisc`.

View source

GetInitState

function GetInitState()

Return init state.

View source

GetNewMapState

function GetNewMapState()

Return new map state.

View source

GetParticleState

function GetParticleState()

Return particle state.

View source

GetRefreshState

inline function GetRefreshState()

Return refresh state.

View source

GetSkinState

function GetSkinState()

Return skin state.

View source

GetTextureState

function GetTextureState()

Return texture state.

View source

particletexture

particletexture

Tracks the module-level particletexture state owned by `miniquake.render.gl_rmisc`.

View source

playertextures

playertextures

Tracks the module-level playertextures state owned by `miniquake.render.gl_rmisc`.

View source

R_Envmap_f

function R_Envmap_f()

Apply the Quake-compatible r envmap f behavior.

View source

R_Init

function R_Init(multitexture)

Apply the Quake-compatible r init behavior.

ParameterTypeDefaultDescription
multitexturedynamic—The multitexture input consumed by `R_Init`.

View source

R_InitParticleTexture

function R_InitParticleTexture()

Implements the `R_InitParticleTexture` operation for `miniquake.render.gl_rmisc` (r init particle texture).

View source

R_InitTextures

function R_InitTextures()

Apply the Quake-compatible r init textures behavior.

View source

R_NewMap

function R_NewMap()

Apply the Quake-compatible r new map behavior.

View source

r_notexture_mip

r_notexture_mip

Direct MiniLang pendant of WinQuake/gl_rmisc.c. The host-facing renderer keeps platform I/O in its existing bridges; this module owns the original texture-generation, palette-translation and renderer-reset semantics so they can also be executed without an OpenGL context by the differential oracle.

View source

r_notexture_mips

r_notexture_mips

Tracks the module-level r notexture mips state owned by `miniquake.render.gl_rmisc`.

View source

r_notexture_offsets

r_notexture_offsets

Tracks the module-level r notexture offsets state owned by `miniquake.render.gl_rmisc`.

View source

R_TimeRefresh_f

function R_TimeRefresh_f()

Apply the Quake-compatible r time refresh f behavior.

View source

R_TranslatePlayerSkin

function R_TranslatePlayerSkin(playernum)

Apply the Quake-compatible r translate player skin behavior.

ParameterTypeDefaultDescription
playernumdynamic—The playernum input consumed by `R_TranslatePlayerSkin`.

View source

ResetCompatibility

function ResetCompatibility()

Update module state for compatibility.

View source

rmiscBoundTexture

rmiscBoundTexture

Tracks the module-level rmisc bound texture state owned by `miniquake.render.gl_rmisc`.

View source

rmiscBuildLightmaps

rmiscBuildLightmaps

Tracks the module-level rmisc build lightmaps state owned by `miniquake.render.gl_rmisc`.

View source

rmiscClearParticles

rmiscClearParticles

Tracks the module-level rmisc clear particles state owned by `miniquake.render.gl_rmisc`.

View source

rmiscColors

rmiscColors

Tracks the module-level rmisc colors state owned by `miniquake.render.gl_rmisc`.

View source

rmiscCommands

rmiscCommands

Tracks the module-level rmisc commands state owned by `miniquake.render.gl_rmisc`.

View source

rmiscCvars

rmiscCvars

Tracks the module-level rmisc cvars state owned by `miniquake.render.gl_rmisc`.

View source

rmiscEndRendering

rmiscEndRendering

Tracks the module-level rmisc end rendering state owned by `miniquake.render.gl_rmisc`.

View source

rmiscEnvDirections

rmiscEnvDirections

Tracks the module-level rmisc env directions state owned by `miniquake.render.gl_rmisc`.

View source

rmiscInitParticles

rmiscInitParticles

Tracks the module-level rmisc init particles state owned by `miniquake.render.gl_rmisc`.

View source

rmiscLastDrawBuffer

rmiscLastDrawBuffer

Tracks the module-level rmisc last draw buffer state owned by `miniquake.render.gl_rmisc`.

View source

rmiscLastYaw

rmiscLastYaw

Tracks the module-level rmisc last yaw state owned by `miniquake.render.gl_rmisc`.

View source

rmiscLeafCount

rmiscLeafCount

Tracks the module-level rmisc leaf count state owned by `miniquake.render.gl_rmisc`.

View source

rmiscLightStyles

rmiscLightStyles

Tracks the module-level rmisc light styles state owned by `miniquake.render.gl_rmisc`.

View source

rmiscMaxSize

rmiscMaxSize

Tracks the module-level rmisc max size state owned by `miniquake.render.gl_rmisc`.

View source

rmiscMirrorTexture

rmiscMirrorTexture

Tracks the module-level rmisc mirror texture state owned by `miniquake.render.gl_rmisc`.

View source

rmiscParticlePixels

rmiscParticlePixels

Tracks the module-level rmisc particle pixels state owned by `miniquake.render.gl_rmisc`.

View source

rmiscPlayerMip

rmiscPlayerMip

Tracks the module-level rmisc player mip state owned by `miniquake.render.gl_rmisc`.

View source

rmiscRenderViews

rmiscRenderViews

Tracks the module-level rmisc render views state owned by `miniquake.render.gl_rmisc`.

View source

rmiscSkin

rmiscSkin

Tracks the module-level rmisc skin state owned by `miniquake.render.gl_rmisc`.

View source

rmiscSkinHeight

rmiscSkinHeight

Tracks the module-level rmisc skin height state owned by `miniquake.render.gl_rmisc`.

View source

rmiscSkinPixels

rmiscSkinPixels

Tracks the module-level rmisc skin pixels state owned by `miniquake.render.gl_rmisc`.

View source

rmiscSkinWidth

rmiscSkinWidth

Tracks the module-level rmisc skin width state owned by `miniquake.render.gl_rmisc`.

View source

rmiscSkyTexture

rmiscSkyTexture

Tracks the module-level rmisc sky texture state owned by `miniquake.render.gl_rmisc`.

View source

rmiscTextureNames

rmiscTextureNames

Tracks the module-level rmisc texture names state owned by `miniquake.render.gl_rmisc`.

View source

rmiscUploadHeight

rmiscUploadHeight

Tracks the module-level rmisc upload height state owned by `miniquake.render.gl_rmisc`.

View source

rmiscUploadWidth

rmiscUploadWidth

Tracks the module-level rmisc upload width state owned by `miniquake.render.gl_rmisc`.

View source

SetNewMapCompatibility

function SetNewMapCompatibility(textureNames, leafCount)

Update module state for new map compatibility.

ParameterTypeDefaultDescription
textureNamesdynamic—The texture names input consumed by `SetNewMapCompatibility`.
leafCountdynamic—Number of entries or units to process.

View source

SetPlayerSkinCompatibility

function SetPlayerSkinCompatibility(width, height, pixels, colors, maxSize, playerMip)

Update module state for player skin compatibility.

ParameterTypeDefaultDescription
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
pixelsdynamic—The pixels input consumed by `SetPlayerSkinCompatibility`.
colorsdynamic—The colors input consumed by `SetPlayerSkinCompatibility`.
maxSizedynamic—Size of the requested data or resource.
playerMipdynamic—The player mip input consumed by `SetPlayerSkinCompatibility`.

View source

SetPlayerTextureBase

function SetPlayerTextureBase(value)

Update module state for player texture base.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `SetPlayerTextureBase`.

View source

startsWith

function startsWith(value, prefix)

Starts s with for `miniquake.render.gl_rmisc`.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `startsWith`.
prefixdynamic—The prefix input consumed by `startsWith`.

View source

texture_extension_number

texture_extension_number

Tracks the module-level texture extension number state owned by `miniquake.render.gl_rmisc`.

View source

translatedIndex

function translatedIndex(value, top, bottom)

Return translated index derived from the active module state.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `translatedIndex`.
topdynamic—The top input consumed by `translatedIndex`.
bottomdynamic—The bottom input consumed by `translatedIndex`.

View source