V-Gears 0
Free Final Fantasy VII engine.
DrawSkeleton.cpp File Reference
Include dependency graph for DrawSkeleton.cpp:

Macros

#define POSITION_BINDING   0
 Used to bind a skeleton position. More...
 
#define COLOUR_BINDING   1
 Used for skeleton bone colours. More...
 

Functions

void DrawSkeleton (const Skeleton &skeleton, const Ogre::MeshPtr &mesh)
 Draws a skeleton. More...
 
void DrawBone (const Skeleton &skeleton, int parent_index, Ogre::RGBA *colours)
 Draws a bone. More...
 

Variables

float * position
 Used to keep track of the skeleton and it's bones positions. More...
 
u32 cur_index
 The bone index for skeleton currently being drawn. More...
 
u16index_data
 Indexes for a skeleton and it's bones. More...
 
Ogre::SubMesh * sub_mesh
 Mesh for a skeleton and it's bones. More...
 

Macro Definition Documentation

◆ COLOUR_BINDING

#define COLOUR_BINDING   1

Used for skeleton bone colours.

◆ POSITION_BINDING

#define POSITION_BINDING   0

Used to bind a skeleton position.

Function Documentation

◆ DrawBone()

void DrawBone ( const Skeleton skeleton,
int  parent_index,
Ogre::RGBA *  colours 
)

Draws a bone.

Parameters
[in]skeletonSkeleton the bone belongs to.
[in]parent_indexThe parent bone ID.
[in]coloursColour for the bone.

◆ DrawSkeleton()

void DrawSkeleton ( const Skeleton skeleton,
const Ogre::MeshPtr &  mesh 
)

Draws a skeleton.

Parameters
[in]skeletonThe skeleton to draw.
[in]meshParent mesh for the skeleton.

Variable Documentation

◆ cur_index

u32 cur_index

The bone index for skeleton currently being drawn.

◆ index_data

u16* index_data

Indexes for a skeleton and it's bones.

◆ position

float* position

Used to keep track of the skeleton and it's bones positions.

◆ sub_mesh

Ogre::SubMesh* sub_mesh

Mesh for a skeleton and it's bones.