MiniQuake2

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.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
mapdynamic—map value consumed by this operation.
namedynamic—Name of the affected item.

View source

miniquake2.renderer.assets.AssetRegistry struct

beginRegistration

function beginRegistration(registry)

Begin registration.

ParameterTypeDefaultDescription
registrydynamic—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.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
suffixdynamic—suffix value consumed by this operation.

View source

findModel

function findModel(registry, name)

Find model.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.

View source

findModelByHandle

inline function findModelByHandle(registry, handle)

Find model by handle.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
handledynamic—Native or runtime handle used by the operation.

View source

findPicture

function findPicture(registry, name)

Find picture.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
namedynamic—Name of the affected item.

View source

findPictureByHandle

inline function findPictureByHandle(registry, handle)

Find picture by handle.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
handledynamic—Native or runtime handle used by the operation.

View source

loadBytes

function loadBytes(imports, name)

Load bytes.

ParameterTypeDefaultDescription
importsdynamic—imports value consumed by this operation.
namedynamic—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.

ParameterTypeDefaultDescription
modeldynamic—model value consumed by this operation.

View source

miniquake2.renderer.assets.ModelAsset struct

modelForHandle

function modelForHandle(registry, handle)

Handle model for.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
handledynamic—Native or runtime handle used by the operation.

View source

nextHandle

function nextHandle(registry, kind, name)

Handle next.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
kinddynamic—kind value consumed by this operation.
namedynamic—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.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

pictureForHandle

function pictureForHandle(registry, handle)

Handle picture for.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
handledynamic—Native or runtime handle used by the operation.

View source

registerMd2Skins

function registerMd2Skins(registry, imports, model)

Register md 2 skins.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
importsdynamic—imports value consumed by this operation.
modeldynamic—model value consumed by this operation.

View source

registerModel

function registerModel(registry, imports, name)

Register model.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
importsdynamic—imports value consumed by this operation.
namedynamic—Name of the affected item.

View source

registerPicture

function registerPicture(registry, imports, name)

Register picture.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
importsdynamic—imports value consumed by this operation.
namedynamic—Name of the affected item.

View source

registerSpriteFrames

function registerSpriteFrames(registry, imports, model)

Register sprite frames.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
importsdynamic—imports value consumed by this operation.
modeldynamic—model value consumed by this operation.

View source

storeResource

function storeResource(registry, asset)

Return the store resource value.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
assetdynamic—asset value consumed by this operation.

View source