MiniQuake

src/miniquake/format/sprite.ml

Package
miniquake.format.sprite
Reachable
Yes

Imports

Declarations

load

function load(filename)

Implements the `load` operation for `miniquake.format.sprite` (load).

ParameterTypeDefaultDescription
filenamedynamic—Path of the file to process.

View source

Mod_LoadSpriteFrame

function Mod_LoadSpriteFrame(data, offset)

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

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

Mod_LoadSpriteGroup

function Mod_LoadSpriteGroup(data, offset)

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

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

Mod_LoadSpriteModel

function Mod_LoadSpriteModel(data, filename)

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

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
filenamedynamic—Path of the file to process.

View source

parse

function parse(data, filename)

Implements the `parse` operation for `miniquake.format.sprite` (parse).

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
filenamedynamic—Path of the file to process.

View source

parseFrameSet

function parseFrameSet(data, offset)

Read and validate frame set.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

parseSingleFrame

function parseSingleFrame(data, offset)

Read and validate single frame.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

spriteFrameBounds

function spriteFrameBounds(frame)

Implements the `spriteFrameBounds` operation for `miniquake.format.sprite` (sprite frame bounds).

ParameterTypeDefaultDescription
framedynamic—The frame input consumed by `spriteFrameBounds`.

View source

spriteModelBounds

function spriteModelBounds(model)

Implements the `spriteModelBounds` operation for `miniquake.format.sprite` (sprite model bounds).

ParameterTypeDefaultDescription
modeldynamic—Model resource processed by the operation.

View source