Expand description
Decoders for individual resource classes.
Structs§
- Animation
Blend - How the game blends from one clip to another.
- Animation
Clip - An animation clip: the bones’ transforms for each frame, and its events.
- Animation
Event - An event in a clip (for example a footstep sound), at a time.
- Animation
Group - A group of animation clips for one skeleton.
- Bone
- A bone of a skeleton.
- Draw
Range - A range of a mesh part that is drawn with one material.
- Graphics
Mesh - A mesh: its parts, its material sets, its skeleton and its bounds.
- Image
Buffer - A texture: its size, format and levels (mip maps, and the six faces of a cube map).
- Material
Instance - A material instance: a base material, and its named textures and values.
- Mesh
Part - A part of a mesh, with its level of detail, its draw ranges and its buffers.
- Sound
Buffer - A sound: its format, its loop flag, its length, and its data in xWMA (or the entry of its stream).
- Vertex
Element - One attribute of a vertex layout.
- Vertex
Layout - A vertex layout: its attributes, and the Direct3D 11 input signature.
- Wave
Format WAVEFORMATEXheader carried by every sound. All shipped audio is xWMA (tag == 0x161).
Enums§
- Image
Format 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
AnimationGroupfrom the bytes of its resource. - decode
- Decode a resource whose class is known statically; checks the type id.
- graphics_
mesh - Read a
GraphicsMeshfrom the bytes of its resource. - image_
buffer - Read a
ImageBufferfrom the bytes of its resource. - material_
instance - Read a
MaterialInstancefrom the bytes of its resource. - sound_
buffer - Read a
SoundBufferfrom the bytes of its resource. - vertex_
layout - Read a
VertexLayoutfrom the bytes of its resource.