Bubba-3D  0.9.0
Awesome game engine!
Public Member Functions | Public Attributes | List of all members
BoneInfluenceOnVertex Struct Reference

Struct for maintaining information of how a bone affects a vertex. More...

#include <BoneInfluenceOnVertex.h>

Public Member Functions

void addBoneData (int boneId, float weight)
 

Public Attributes

uint ids [MAX_NUM_BONES]
 
float weights [MAX_NUM_BONES]
 

Detailed Description

Struct for maintaining information of how a bone affects a vertex.

A vertex can be affected by at most

MAX_NUM_BONES

and each bone affects the vertex by a certain weight. The sum of all weights must equal 1.0.

Usage:

BoneInfluenceOnVertex boneInfluence;
boneInfluence.addBoneData(firstBoneConnectedToVertex, firstBonesWeightOnVertex);
boneInfluence.addBoneData(secondBoneConnectedToVertex, secondBonesWeightOnVertex);

Definition at line 37 of file BoneInfluenceOnVertex.h.

Member Function Documentation

void BoneInfluenceOnVertex::addBoneData ( int  boneId,
float  weight 
)

Adds bone data to the next free bone slot

Definition at line 30 of file BoneInfluenceOnVertex.cpp.


The documentation for this struct was generated from the following files: