# _RD_CenterY
inline function _RD_CenterY()Returns the configured projection center or the logical screen midpoint when view setup has not supplied one.
src/r_draw.mlRasterizes software wall columns, spans, fuzz, translated sprites, and depth-tested pixels into the active view buffer.
doomdef.ml → src/doomdef.mldoomstat.ml → src/doomstat.mli_gl.ml → src/i_gl.mli_system.ml → src/i_system.mlr_hires.ml → src/r_hires.mlr_local.ml → src/r_local.mlstd/math.ml → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/math.ml external dependencyv_video.ml → src/v_video.mlw_wad.ml → src/w_wad.mlz_zone.ml → src/z_zone.mlinline function _RD_CenterY()Returns the configured projection center or the logical screen midpoint when view setup has not supplied one.
inline function _RD_DepthPass(di)Always accepts a pixel because visibility is already resolved by BSP and sprite draw order in the software renderer.
| Parameter | Type | Default | Description |
|---|---|---|---|
di | dynamic | — | Di value supplied to `_RD_DepthPass`. |
inline function _RD_DepthStore(di)Retains the depth-write call site for alternate backends while intentionally storing nothing in the painter-ordered path.
| Parameter | Type | Default | Description |
|---|---|---|---|
di | dynamic | — | Di value supplied to `_RD_DepthStore`. |
inline function _RD_DrawPatchIfExists(x, y, scrn, name)Resolves and draws an optional named border patch without failing when an IWAD omits it.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
scrn | dynamic | — | Scrn value supplied to `_RD_DrawPatchIfExists`. |
name | dynamic | — | Resource or object name to resolve. |
inline function _RD_FlatSampleCoord(frac, size)Maps Doom's fixed 64x64 flat coordinate into a variable-size source image.
| Parameter | Type | Default | Description |
|---|---|---|---|
frac | dynamic | — | Frac value supplied to `_RD_FlatSampleCoord`. |
size | dynamic | — | Requested size in bytes or elements. |
inline function _RD_IDiv(a, b)Returns a signed quotient truncated toward zero, or zero for invalid operands and a zero divisor in `_RD_IDiv`
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
inline function _RD_IsPow2(n)Tests whether a positive texture dimension permits bit-mask wrapping.
| Parameter | Type | Default | Description |
|---|---|---|---|
n | dynamic | — | Number of values to process. |
_rd_prof_col_callsTracks the mutable rd prof col calls value used by the r draw subsystem.
_rd_prof_col_pixelsTracks the mutable rd prof col pixels value used by the r draw subsystem.
_rd_prof_enabledTracks whether rd prof enabled is active in the r draw subsystem.
_rd_prof_span_callsTracks the mutable rd prof span calls value used by the r draw subsystem.
_rd_prof_span_pixelsTracks the mutable rd prof span pixels value used by the r draw subsystem.
inline function _RD_TargetBuffer()Returns the active render target buffer.
inline function _RD_TargetHeight()Returns the active render target height.
inline function _RD_TargetWidth()Returns the active render target width.
inline function _RD_WrapIndex(i, n)Wraps positive or negative texture indices into a validated source period.
| Parameter | Type | Default | Description |
|---|---|---|---|
i | dynamic | — | Zero-based iteration index. |
n | dynamic | — | Number of values to process. |
columnofsStores the columnofs collection used by the r draw subsystem.
dc_colormapTracks the mutable dc colormap value used by the r draw subsystem.
dc_iscaleTracks the mutable dc iscale value used by the r draw subsystem.
dc_sourceTracks the mutable dc source value used by the r draw subsystem.
dc_sourcebaseHolds the optional dc sourcebase resource used by the r draw subsystem.
dc_sourceclampTracks whether dc sourceclamp is active in the r draw subsystem.
dc_sourcelenTracks the mutable dc sourcelen value used by the r draw subsystem.
dc_sourceoffTracks the mutable dc sourceoff value used by the r draw subsystem.
dc_texturemidTracks the mutable dc texturemid value used by the r draw subsystem.
dc_translationTracks the mutable dc translation value used by the r draw subsystem.
dc_xTracks the mutable dc x value used by the r draw subsystem.
dc_yhTracks the mutable dc yh value used by the r draw subsystem.
dc_ylTracks the mutable dc yl value used by the r draw subsystem.
ds_colormapTracks the mutable ds colormap value used by the r draw subsystem.
ds_sourceTracks the mutable ds source value used by the r draw subsystem.
ds_source_heightTracks the mutable ds source height value used by the r draw subsystem.
ds_source_widthTracks the mutable ds source width value used by the r draw subsystem.
ds_x1Tracks the mutable ds x1 value used by the r draw subsystem.
ds_x2Tracks the mutable ds x2 value used by the r draw subsystem.
ds_xfracTracks the mutable ds xfrac value used by the r draw subsystem.
ds_xstepTracks the mutable ds xstep value used by the r draw subsystem.
ds_yTracks the mutable ds y value used by the r draw subsystem.
ds_yfracTracks the mutable ds yfrac value used by the r draw subsystem.
ds_ystepTracks the mutable ds ystep value used by the r draw subsystem.
fuzzoffsetStores the fuzzoffset collection used by the r draw subsystem.
fuzzposTracks the mutable fuzzpos value used by the r draw subsystem.
const FUZZTABLE = 50Defines fuzztable for the r draw subsystem.
function R_DepthBeginSprite(scale)Accepts the projected sprite scale for depth-aware renderer compatibility; painter ordering makes it a no-op here.
| Parameter | Type | Default | Description |
|---|---|---|---|
scale | dynamic | — | Scale value supplied to `R_DepthBeginSprite`. |
function R_DepthBeginWall(scale)Accepts the projected wall scale for depth-aware renderer compatibility; painter ordering makes it a no-op here.
| Parameter | Type | Default | Description |
|---|---|---|---|
scale | dynamic | — | Scale value supplied to `R_DepthBeginWall`. |
function R_DepthClear()Preserves the depth-buffer reset hook used by renderer callers; the current painter-ordered software path requires no separate buffer.
function R_DepthEndSprite()Closes the compatibility scope opened for a sprite column without changing software draw state.
function R_DepthEndWall()Closes the compatibility scope opened for a wall column; no state is retained by the painter-ordered path.
function R_DrawColumn()Samples a vertically stepped texture column through the active colormap into one clipped high-detail screen column.
function R_DrawColumnLow()Draws a low-detail texture column by duplicating each logical sample across two horizontal target pixels.
function R_DrawFuzzColumn()Produces the spectre effect by copying neighboring framebuffer samples through the fuzz colormap while advancing the cyclic fuzz offset.
function R_DrawFuzzColumnLow()Applies the fuzz-neighbor effect to a doubled low-detail column.
function R_DrawProfileReset()Clears draw Profile Reset state before the next software drawing update.
function R_DrawProfileSetEnabled(on)Enables or disables software column/span counters without changing the active draw-function bindings.
| Parameter | Type | Default | Description |
|---|---|---|---|
on | dynamic | — | On value supplied to `R_DrawProfileSetEnabled`. |
function R_DrawSpan()Perspective-steps texture coordinates across one horizontal floor/ceiling span and writes colormapped samples to the active target.
function R_DrawSpanLow()Draws a perspective-correct flat span with horizontally doubled samples for low-detail mode.
function R_DrawTranslatedColumn()Remaps each texture texel through the active player-color translation before applying the lighting colormap.
function R_DrawTranslatedColumnLow()Draws a player-color-translated column with each result duplicated for low-detail mode.
function R_DrawViewBorder()Copies only the cached top, bottom, and side border regions around a reduced view into the foreground screen.
function R_FillBackScreen()Tiles the game-mode border flat into the background screen and surrounds a reduced view with optional border patches.
function R_InitBuffer(width, height)Recomputes view-window offsets plus per-row and per-column destination lookup tables for the active render target size.
| Parameter | Type | Default | Description |
|---|---|---|---|
width | dynamic | — | Width of the target in pixels or map units. |
height | dynamic | — | Height of the target in pixels or map units. |
function R_InitTranslationTables()Precomputes the three Doom player-color remaps while leaving every non-green palette index unchanged.
function R_VideoErase(ofs, count)Restores a clipped byte range in the foreground screen from the cached background screen.
| Parameter | Type | Default | Description |
|---|---|---|---|
ofs | dynamic | — | Ofs value supplied to `R_VideoErase`. |
count | dynamic | — | Number of elements or iterations to process. |
const RD_FLAT_PERIOD_MASK = 4194303Defines rd flat period mask for the r draw subsystem.
const SBARHEIGHT = 32Defines sbarheight for the r draw subsystem.
translationtablesTracks the mutable translationtables value used by the r draw subsystem.
ylookupStores the ylookup collection used by the r draw subsystem.