Files
src/miniquake2/renderer/assets.ml
Provides miniquake2 renderer assets facilities for this project.
- Package
miniquake2.renderer.assets- Reachable
- Yes
Imports
Declarations
# adoptBspModel
function adoptBspModel(registry, map, name)
Return the adopt bsp model value.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
map | dynamic | — | map value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
View source
miniquake2.renderer.assets.AssetRegistry struct
# beginRegistration
function beginRegistration(registry)
Begin registration.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
View source
# create
function create()
Creates create for the miniquake2 renderer assets module.
View source
# endsWith
function endsWith(value, suffix)
Return the ends with value.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
suffix | dynamic | — | suffix value consumed by this operation. |
View source
# findModel
function findModel(registry, name)
Find model.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
View source
# findModelByHandle
inline function findModelByHandle(registry, handle)
Find model by handle.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
handle | dynamic | — | Native or runtime handle used by the operation. |
View source
# findPicture
function findPicture(registry, name)
Find picture.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
View source
# findPictureByHandle
inline function findPictureByHandle(registry, handle)
Find picture by handle.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
handle | dynamic | — | Native or runtime handle used by the operation. |
View source
# loadBytes
function loadBytes(imports, name)
Load bytes.
| Parameter | Type | Default | Description |
|---|
imports | dynamic | — | imports value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
View source
# MAX_REGISTERED_RESOURCES
const MAX_REGISTERED_RESOURCES = 4096
Defines the max registered resources constant used by the miniquake2 renderer assets module.
View source
# md2FrameBounds
function md2FrameBounds(model)
Return the md 2 frame bounds.
| Parameter | Type | Default | Description |
|---|
model | dynamic | — | model value consumed by this operation. |
View source
miniquake2.renderer.assets.ModelAsset struct
# modelForHandle
function modelForHandle(registry, handle)
Handle model for.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
handle | dynamic | — | Native or runtime handle used by the operation. |
View source
# nextHandle
function nextHandle(registry, kind, name)
Handle next.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
kind | dynamic | — | kind value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
View source
miniquake2.renderer.assets.PictureAsset struct
# pictureFileName
function pictureFileName(name)
The public Renderer API uses extension-less picture names (for example `i_health` and `m_main_logo`). Files on disk retain the classic `pics/<name>.pcx` layout. Model skins and WAL materials already arrive as complete qpaths and must remain unchanged.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Name of the affected item. |
View source
# pictureForHandle
function pictureForHandle(registry, handle)
Handle picture for.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
handle | dynamic | — | Native or runtime handle used by the operation. |
View source
# registerMd2Skins
function registerMd2Skins(registry, imports, model)
Register md 2 skins.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
imports | dynamic | — | imports value consumed by this operation. |
model | dynamic | — | model value consumed by this operation. |
View source
# registerModel
function registerModel(registry, imports, name)
Register model.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
imports | dynamic | — | imports value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
View source
# registerPicture
function registerPicture(registry, imports, name)
Register picture.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
imports | dynamic | — | imports value consumed by this operation. |
name | dynamic | — | Name of the affected item. |
View source
# registerSpriteFrames
function registerSpriteFrames(registry, imports, model)
Register sprite frames.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
imports | dynamic | — | imports value consumed by this operation. |
model | dynamic | — | model value consumed by this operation. |
View source
# storeResource
function storeResource(registry, asset)
Return the store resource value.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
asset | dynamic | — | asset value consumed by this operation. |
View source