# load
function load(filename)Implements the `load` operation for `miniquake.format.mdl` (load).
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
src/miniquake/format/mdl.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/types.ml as t → src/miniquake/types.mlstd/fs.ml as fs → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/fs.ml external dependencyfunction load(filename)Implements the `load` operation for `miniquake.format.mdl` (load).
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
function Mod_FloodFillSkin(skin, skinWidth, skinHeight)Mirror Quake's Mod_FloodFillSkin routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
skin | dynamic | — | The skin input consumed by `Mod_FloodFillSkin`. |
skinWidth | dynamic | — | The skin width input consumed by `Mod_FloodFillSkin`. |
skinHeight | dynamic | — | The skin height input consumed by `Mod_FloodFillSkin`. |
function Mod_LoadAliasFrame(data, offset, numVertices)Mirror Quake's Mod_LoadAliasFrame routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
numVertices | dynamic | — | The num vertices input consumed by `Mod_LoadAliasFrame`. |
function Mod_LoadAliasGroup(data, offset, numVertices)Mirror Quake's Mod_LoadAliasGroup routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
numVertices | dynamic | — | The num vertices input consumed by `Mod_LoadAliasGroup`. |
function Mod_LoadAliasModel(data, filename)Mirror Quake's Mod_LoadAliasModel routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
filename | dynamic | — | Path of the file to process. |
function Mod_LoadAllSkins(data, offset, numSkins, skinWidth, skinHeight)Mirror Quake's Mod_LoadAllSkins routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
numSkins | dynamic | — | The num skins input consumed by `Mod_LoadAllSkins`. |
skinWidth | dynamic | — | The skin width input consumed by `Mod_LoadAllSkins`. |
skinHeight | dynamic | — | The skin height input consumed by `Mod_LoadAllSkins`. |
function parse(data, filename)Implements the `parse` operation for `miniquake.format.mdl` (parse).
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
filename | dynamic | — | Path of the file to process. |
function parseFrameSet(data, offset, numVertices)Read and validate frame set.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
numVertices | dynamic | — | The num vertices input consumed by `parseFrameSet`. |
function parseSingleFrame(data, offset, numVertices)Read and validate single frame.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
numVertices | dynamic | — | The num vertices input consumed by `parseSingleFrame`. |
function parseSkin(data, offset, skinWidth, skinHeight)Read and validate skin.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
skinWidth | dynamic | — | The skin width input consumed by `parseSkin`. |
skinHeight | dynamic | — | The skin height input consumed by `parseSkin`. |
function parseVertex(data, offset)Read and validate vertex.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |