MiniQuake

src/miniquake/format/mdl.ml

Package
miniquake.format.mdl
Reachable
Yes

Imports

Declarations

load

function load(filename)

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

ParameterTypeDefaultDescription
filenamedynamic—Path of the file to process.

View source

Mod_FloodFillSkin

function Mod_FloodFillSkin(skin, skinWidth, skinHeight)

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

ParameterTypeDefaultDescription
skindynamic—The skin input consumed by `Mod_FloodFillSkin`.
skinWidthdynamic—The skin width input consumed by `Mod_FloodFillSkin`.
skinHeightdynamic—The skin height input consumed by `Mod_FloodFillSkin`.

View source

Mod_LoadAliasFrame

function Mod_LoadAliasFrame(data, offset, numVertices)

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

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
numVerticesdynamic—The num vertices input consumed by `Mod_LoadAliasFrame`.

View source

Mod_LoadAliasGroup

function Mod_LoadAliasGroup(data, offset, numVertices)

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

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
numVerticesdynamic—The num vertices input consumed by `Mod_LoadAliasGroup`.

View source

Mod_LoadAliasModel

function Mod_LoadAliasModel(data, filename)

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

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

View source

Mod_LoadAllSkins

function Mod_LoadAllSkins(data, offset, numSkins, skinWidth, skinHeight)

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

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
numSkinsdynamic—The num skins input consumed by `Mod_LoadAllSkins`.
skinWidthdynamic—The skin width input consumed by `Mod_LoadAllSkins`.
skinHeightdynamic—The skin height input consumed by `Mod_LoadAllSkins`.

View source

parse

function parse(data, filename)

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

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

View source

parseFrameSet

function parseFrameSet(data, offset, numVertices)

Read and validate frame set.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
numVerticesdynamic—The num vertices input consumed by `parseFrameSet`.

View source

parseSingleFrame

function parseSingleFrame(data, offset, numVertices)

Read and validate single frame.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
numVerticesdynamic—The num vertices input consumed by `parseSingleFrame`.

View source

parseSkin

function parseSkin(data, offset, skinWidth, skinHeight)

Read and validate skin.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
skinWidthdynamic—The skin width input consumed by `parseSkin`.
skinHeightdynamic—The skin height input consumed by `parseSkin`.

View source

parseVertex

function parseVertex(data, offset)

Read and validate vertex.

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

View source