Skip to main content

Module types

Module types 

Source
Expand description

Decoders for individual resource classes.

Structs§

AnimationBlend
How the game blends from one clip to another.
AnimationClip
An animation clip: the bones’ transforms for each frame, and its events.
AnimationEvent
An event in a clip (for example a footstep sound), at a time.
AnimationGroup
A group of animation clips for one skeleton.
Bone
A bone of a skeleton.
DrawRange
A range of a mesh part that is drawn with one material.
GraphicsMesh
A mesh: its parts, its material sets, its skeleton and its bounds.
ImageBuffer
A texture: its size, format and levels (mip maps, and the six faces of a cube map).
MaterialInstance
A material instance: a base material, and its named textures and values.
MeshPart
A part of a mesh, with its level of detail, its draw ranges and its buffers.
SoundBuffer
A sound: its format, its loop flag, its length, and its data in xWMA (or the entry of its stream).
VertexElement
One attribute of a vertex layout.
VertexLayout
A vertex layout: its attributes, and the Direct3D 11 input signature.
WaveFormat
WAVEFORMATEX header carried by every sound. All shipped audio is xWMA (tag == 0x161).

Enums§

ImageFormat
Video::ImageBuffer::Format, mapped to DXGI by the VideoDX11 texture-creation table.

Constants§

POSITION_SCALE
Positions are stored as int16 and scaled by this in the vertex shader.
SKINNED_STRIDE
ModelSkinLayout: as static, plus unorm8x4 weights at 24 and uint8x4 bone indices at 28.
STATIC_STRIDE
ModelLayout: sint16x4 position, sint16x4 texcoords, unorm8x4 normal, 4 bytes padding.

Functions§

animation_group
Read a AnimationGroup from the bytes of its resource.
decode
Decode a resource whose class is known statically; checks the type id.
graphics_mesh
Read a GraphicsMesh from the bytes of its resource.
image_buffer
Read a ImageBuffer from the bytes of its resource.
material_instance
Read a MaterialInstance from the bytes of its resource.
sound_buffer
Read a SoundBuffer from the bytes of its resource.
vertex_layout
Read a VertexLayout from the bytes of its resource.