![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
#include "common/TypeDefine.h"
#include "installer/common/DrawSkeleton.h"
#include "installer/common/Logger.h"
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... | |
u16 * | index_data |
Indexes for a skeleton and it's bones. More... | |
Ogre::SubMesh * | sub_mesh |
Mesh for a skeleton and it's bones. More... | |
#define COLOUR_BINDING 1 |
Used for skeleton bone colours.
#define POSITION_BINDING 0 |
Used to bind a skeleton position.
void DrawBone | ( | const Skeleton & | skeleton, |
int | parent_index, | ||
Ogre::RGBA * | colours | ||
) |
Draws a bone.
[in] | skeleton | Skeleton the bone belongs to. |
[in] | parent_index | The parent bone ID. |
[in] | colours | Colour for the bone. |
void DrawSkeleton | ( | const Skeleton & | skeleton, |
const Ogre::MeshPtr & | mesh | ||
) |
Draws a skeleton.
[in] | skeleton | The skeleton to draw. |
[in] | mesh | Parent mesh for the skeleton. |
u32 cur_index |
The bone index for skeleton currently being drawn.
u16* index_data |
Indexes for a skeleton and it's bones.
float* position |
Used to keep track of the skeleton and it's bones positions.
Ogre::SubMesh* sub_mesh |
Mesh for a skeleton and it's bones.