MiniDoom

src/r_defs.ml

Defines map/render geometry records and decodes Doom patch headers consumed by software rasterization.

Package
(global)
Reachable
Yes

Imports

Declarations

degenmobj_t struct

drawseg_t struct

line_t struct

MAXDRAWSEGS

const MAXDRAWSEGS = 256

Defines the maximum maxdrawsegs accepted by the r defs subsystem.

View source

node_t struct

Patch_ColumnOffset

inline function Patch_ColumnOffset(patchBytes, colIndex)

Decodes the file-relative byte offset of one column stream from a Doom patch directory.

ParameterTypeDefaultDescription
patchBytesdynamic—Patch bytes value supplied to `Patch_ColumnOffset`.
colIndexdynamic—Index identifying col.

View source

Patch_Height

function Patch_Height(patchBytes)

Returns the signed pixel height stored in a Doom patch header.

ParameterTypeDefaultDescription
patchBytesdynamic—Patch bytes value supplied to `Patch_Height`.

View source

Patch_LeftOffset

inline function Patch_LeftOffset(patchBytes)

Returns the signed horizontal origin offset used to place a Doom patch.

ParameterTypeDefaultDescription
patchBytesdynamic—Patch bytes value supplied to `Patch_LeftOffset`.

View source

patch_t struct

Patch_TopOffset

inline function Patch_TopOffset(patchBytes)

Returns the signed vertical origin offset used to place a Doom patch.

ParameterTypeDefaultDescription
patchBytesdynamic—Patch bytes value supplied to `Patch_TopOffset`.

View source

Patch_Width

function Patch_Width(patchBytes)

Returns the signed pixel width stored at the start of a Doom patch header.

ParameterTypeDefaultDescription
patchBytesdynamic—Patch bytes value supplied to `Patch_Width`.

View source

post_t struct

RDefs_I16LE

inline function RDefs_I16LE(b, off)

Decodes a two-byte little-endian field with signed 16-bit interpretation.

ParameterTypeDefaultDescription
bdynamic—Second input operand.
offdynamic—Zero-based byte or element offset.

View source

RDefs_I32LE

inline function RDefs_I32LE(b, off)

Decodes a four-byte little-endian field with signed 32-bit interpretation.

ParameterTypeDefaultDescription
bdynamic—Second input operand.
offdynamic—Zero-based byte or element offset.

View source

RDefs_U16LE

inline function RDefs_U16LE(b, off)

Decodes an unsigned 16-bit little-endian field from renderer resource bytes.

ParameterTypeDefaultDescription
bdynamic—Second input operand.
offdynamic—Zero-based byte or element offset.

View source

RDefs_U32LE

inline function RDefs_U32LE(b, off)

Decodes an unsigned 32-bit little-endian field from renderer resource bytes.

ParameterTypeDefaultDescription
bdynamic—Second input operand.
offdynamic—Zero-based byte or element offset.

View source

sector_t struct

seg_t struct

side_t struct

SIL_BOTH

const SIL_BOTH = 3

Defines sil both for the r defs subsystem.

View source

SIL_BOTTOM

const SIL_BOTTOM = 1

Defines sil bottom for the r defs subsystem.

View source

SIL_NONE

const SIL_NONE = 0

Defines sil none for the r defs subsystem.

View source

SIL_TOP

const SIL_TOP = 2

Defines sil top for the r defs subsystem.

View source

slopetype_t enum

spritedef_t struct

spriteframe_t struct

subsector_t struct

vertex_t struct

visplane_t struct

vissprite_t struct