Iqm

Undocumented in source.

Constructors

this
this(GraphicsDevice graphicsDevice)
Undocumented in source.

Members

Enums

IqmAttribute
enum IqmAttribute
Undocumented in source.
IqmType
enum IqmType
Undocumented in source.

Functions

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(float deltaTime, mat4 view, mat4 projection)

Draws the model

drawInstances
void drawInstances(bool bindTexture)
Undocumented in source. Be warned that the author may not have intended to support it.
drawShadowPass
void drawShadowPass(float deltaTime)
Undocumented in source. Be warned that the author may not have intended to support it.
playFrame
void playFrame(float frame)

Play a specific frame

Manifest constants

IQM_LOOP
enum IQM_LOOP;
Undocumented in source.

Properties

boundingBoxes
BoundingBox* boundingBoxes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
getAnimation
string getAnimation [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
hasAnimation
bool hasAnimation [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
hasTextures
bool hasTextures [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
header
IqmHeader header [@property getter]

Properties

joints
string joints [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
outFrames
mat4[] outFrames [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

generateBuffers
void generateBuffers(Iqm iqm)

Generates vbo and ibo

load
Iqm load(string fileName)

Loads IQM model

loadAnimations
bool loadAnimations(Iqm iqm, ubyte[] buffer)

Loads iqm animations

loadMeshes
bool loadMeshes(Iqm iqm, ubyte[] buffer)

Loads iqm meshes

Static variables

IQM_VERSION
enum IQM_VERSION;
Undocumented in source.

Structs

IqmAnim
struct IqmAnim
Undocumented in source.
IqmBounds
struct IqmBounds
Undocumented in source.
IqmHeader
struct IqmHeader
Undocumented in source.
IqmJoint
struct IqmJoint
Undocumented in source.
IqmMesh
struct IqmMesh
Undocumented in source.
IqmPose
struct IqmPose
Undocumented in source.
IqmTriangle
struct IqmTriangle
Undocumented in source.
IqmVertexArray
struct IqmVertexArray
Undocumented in source.

Variables

m_baseframe
mat4[] m_baseframe;
Undocumented in source.
m_frames
mat4[] m_frames;
Undocumented in source.
m_inversebaseframe
mat4[] m_inversebaseframe;
Undocumented in source.
m_outframe
mat4[] m_outframe;
Undocumented in source.

Inherited Members

From Model

m_instancingBuffers
uint[] m_instancingBuffers;

Buffer for instancing

m_instancesCount
uint m_instancesCount;

Instances count

m_shader
Shader m_shader;

Shader

dispose
void dispose()

Model destructor.

initializeInstancing
void initializeInstancing(uint instancesCount, int buffersCount)

Initializes instancing data.

setInstancingBufferData
void setInstancingBufferData(int index, void* data)

Sets buffer data for buffer at position index.

updateInstancingBufferData
void updateInstancingBufferData(int index, uint offset, uint size, void* data)

Updates buffer data for buffer at position index.

getInstancingBuffer
uint getInstancingBuffer(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
drawInstances
void drawInstances(bool bindTexture)

Draws all instances, depends on model impl

vao
uint vao [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
instancesCount
uint instancesCount [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
availableInstances
bool availableInstances [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta