# D_FlushCaches
function D_FlushCaches()Mirror Quake's D_FlushCaches routine and its observable state changes.
src/miniquake/render/gl_rmisc.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/constants.ml as c → src/miniquake/constants.mlfunction D_FlushCaches()Mirror Quake's D_FlushCaches routine and its observable state changes.
envmapTracks the module-level envmap state owned by `miniquake.render.gl_rmisc`.
function GetInitState()Return init state.
function GetNewMapState()Return new map state.
function GetParticleState()Return particle state.
inline function GetRefreshState()Return refresh state.
function GetSkinState()Return skin state.
function GetTextureState()Return texture state.
particletextureTracks the module-level particletexture state owned by `miniquake.render.gl_rmisc`.
playertexturesTracks the module-level playertextures state owned by `miniquake.render.gl_rmisc`.
function R_Envmap_f()Apply the Quake-compatible r envmap f behavior.
function R_Init(multitexture)Apply the Quake-compatible r init behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
multitexture | dynamic | — | The multitexture input consumed by `R_Init`. |
function R_InitParticleTexture()Implements the `R_InitParticleTexture` operation for `miniquake.render.gl_rmisc` (r init particle texture).
function R_InitTextures()Apply the Quake-compatible r init textures behavior.
function R_NewMap()Apply the Quake-compatible r new map behavior.
r_notexture_mipDirect 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.
r_notexture_mipsTracks the module-level r notexture mips state owned by `miniquake.render.gl_rmisc`.
r_notexture_offsetsTracks the module-level r notexture offsets state owned by `miniquake.render.gl_rmisc`.
function R_TimeRefresh_f()Apply the Quake-compatible r time refresh f behavior.
function R_TranslatePlayerSkin(playernum)Apply the Quake-compatible r translate player skin behavior.
| Parameter | Type | Default | Description |
|---|---|---|---|
playernum | dynamic | — | The playernum input consumed by `R_TranslatePlayerSkin`. |
function ResetCompatibility()Update module state for compatibility.
rmiscBoundTextureTracks the module-level rmisc bound texture state owned by `miniquake.render.gl_rmisc`.
rmiscBuildLightmapsTracks the module-level rmisc build lightmaps state owned by `miniquake.render.gl_rmisc`.
rmiscClearParticlesTracks the module-level rmisc clear particles state owned by `miniquake.render.gl_rmisc`.
rmiscColorsTracks the module-level rmisc colors state owned by `miniquake.render.gl_rmisc`.
rmiscCommandsTracks the module-level rmisc commands state owned by `miniquake.render.gl_rmisc`.
rmiscCvarsTracks the module-level rmisc cvars state owned by `miniquake.render.gl_rmisc`.
rmiscEndRenderingTracks the module-level rmisc end rendering state owned by `miniquake.render.gl_rmisc`.
rmiscEnvDirectionsTracks the module-level rmisc env directions state owned by `miniquake.render.gl_rmisc`.
rmiscInitParticlesTracks the module-level rmisc init particles state owned by `miniquake.render.gl_rmisc`.
rmiscLastDrawBufferTracks the module-level rmisc last draw buffer state owned by `miniquake.render.gl_rmisc`.
rmiscLastYawTracks the module-level rmisc last yaw state owned by `miniquake.render.gl_rmisc`.
rmiscLeafCountTracks the module-level rmisc leaf count state owned by `miniquake.render.gl_rmisc`.
rmiscLightStylesTracks the module-level rmisc light styles state owned by `miniquake.render.gl_rmisc`.
rmiscMaxSizeTracks the module-level rmisc max size state owned by `miniquake.render.gl_rmisc`.
rmiscMirrorTextureTracks the module-level rmisc mirror texture state owned by `miniquake.render.gl_rmisc`.
rmiscParticlePixelsTracks the module-level rmisc particle pixels state owned by `miniquake.render.gl_rmisc`.
rmiscPlayerMipTracks the module-level rmisc player mip state owned by `miniquake.render.gl_rmisc`.
rmiscRenderViewsTracks the module-level rmisc render views state owned by `miniquake.render.gl_rmisc`.
rmiscSkinTracks the module-level rmisc skin state owned by `miniquake.render.gl_rmisc`.
rmiscSkinHeightTracks the module-level rmisc skin height state owned by `miniquake.render.gl_rmisc`.
rmiscSkinPixelsTracks the module-level rmisc skin pixels state owned by `miniquake.render.gl_rmisc`.
rmiscSkinWidthTracks the module-level rmisc skin width state owned by `miniquake.render.gl_rmisc`.
rmiscSkyTextureTracks the module-level rmisc sky texture state owned by `miniquake.render.gl_rmisc`.
rmiscTextureNamesTracks the module-level rmisc texture names state owned by `miniquake.render.gl_rmisc`.
rmiscUploadHeightTracks the module-level rmisc upload height state owned by `miniquake.render.gl_rmisc`.
rmiscUploadWidthTracks the module-level rmisc upload width state owned by `miniquake.render.gl_rmisc`.
function SetNewMapCompatibility(textureNames, leafCount)Update module state for new map compatibility.
| Parameter | Type | Default | Description |
|---|---|---|---|
textureNames | dynamic | — | The texture names input consumed by `SetNewMapCompatibility`. |
leafCount | dynamic | — | Number of entries or units to process. |
function SetPlayerSkinCompatibility(width, height, pixels, colors, maxSize, playerMip)Update module state for player skin compatibility.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixels | dynamic | — | The pixels input consumed by `SetPlayerSkinCompatibility`. |
colors | dynamic | — | The colors input consumed by `SetPlayerSkinCompatibility`. |
maxSize | dynamic | — | Size of the requested data or resource. |
playerMip | dynamic | — | The player mip input consumed by `SetPlayerSkinCompatibility`. |
function SetPlayerTextureBase(value)Update module state for player texture base.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `SetPlayerTextureBase`. |
function startsWith(value, prefix)Starts s with for `miniquake.render.gl_rmisc`.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `startsWith`. |
prefix | dynamic | — | The prefix input consumed by `startsWith`. |
texture_extension_numberTracks the module-level texture extension number state owned by `miniquake.render.gl_rmisc`.
function translatedIndex(value, top, bottom)Return translated index derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `translatedIndex`. |
top | dynamic | — | The top input consumed by `translatedIndex`. |
bottom | dynamic | — | The bottom input consumed by `translatedIndex`. |