16#ifndef OSGANIMATION_RIG_TRANSFORM_HARDWARE
17#define OSGANIMATION_RIG_TRANSFORM_HARDWARE 1
26#define RIGTRANSHW_DEFAULT_FIRST_VERTATTRIB_TARGETTED 11
TemplateArray< Vec4, Array::Vec4ArrayType, 4, GL_FLOAT > Vec4Array
Definition Array:450
Matrixd Matrix
Definition Matrix:27
The osgAnimation library provides general purpose utility classes for animation.
Definition Action:34
std::map< std::string, osg::ref_ptr< Bone > > BoneMap
Definition Bone:59
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
osg::Shader is an application-level abstraction of an OpenGL glShader.
Definition Shader:89
Uniform encapsulates glUniform values.
Definition Uniform:414
Definition RigGeometry:50
RigTransform()
Definition RigTransform:28
osg::ref_ptr< osg::Shader > _shader
Definition RigTransformHardware:83
const unsigned int & getNumVertexes() const
Definition RigTransformHardware:60
virtual bool prepareData(RigGeometry &)
to call manually when a skeleton is reacheable from the rig in order to prepare technic data before r...
unsigned int getFirstVertexAttributeTarget() const
Definition RigTransformHardware:50
META_Object(osgAnimation, RigTransformHardware)
osg::ref_ptr< osg::Uniform > _uniformMatrixPalette
Definition RigTransformHardware:82
std::vector< osg::ref_ptr< Bone > > BonePalette
Definition RigTransformHardware:44
osg::Uniform * getMatrixPaletteUniform()
Definition RigTransformHardware:64
virtual void operator()(RigGeometry &)
void computeMatrixPaletteUniform(const osg::Matrix &transformFromSkeletonToGeometry, const osg::Matrix &invTransformFromSkeletonToGeometry)
const unsigned int & getNumBonesPerVertex() const
Definition RigTransformHardware:59
const BonePalette & getBonePalette()
Definition RigTransformHardware:63
unsigned int _nbVertices
Definition RigTransformHardware:77
void setShader(osg::Shader *shader)
Definition RigTransformHardware:52
bool buildPalette(const BoneMap &boneMap, const RigGeometry &rig)
RigTransformHardware(const RigTransformHardware &rth, const osg::CopyOp ©op)
osg::Vec4Array * getVertexAttrib(unsigned int index)
std::vector< osg::Matrix > MatrixPalette
Definition RigTransformHardware:46
virtual bool init(RigGeometry &)
osg::Shader * getShader()
Definition RigTransformHardware:54
bool _needInit
Definition RigTransformHardware:85
BoneWeightAttribList _boneWeightAttribArrays
Definition RigTransformHardware:81
unsigned int getNumVertexAttrib() const
Definition RigTransformHardware:57
const BoneNamePaletteIndex & getBoneNameToPalette()
Definition RigTransformHardware:62
unsigned int _minAttribIndex
Definition RigTransformHardware:86
unsigned int _bonesPerVertex
Definition RigTransformHardware:76
void setFirstVertexAttributeTarget(unsigned int i)
set the first Vertex Attribute Array index of the rig generated by this technic (default:11)
Definition RigTransformHardware:49
BoneNamePaletteIndex _boneNameToPalette
Definition RigTransformHardware:80
std::vector< osg::ref_ptr< osg::Vec4Array > > BoneWeightAttribList
Definition RigTransformHardware:43
std::vector< IndexWeightList > _perVertexInfluences
Definition RigTransformHardware:92
const osg::Shader * getShader() const
Definition RigTransformHardware:53
BonePalette _bonePalette
Definition RigTransformHardware:79
std::map< std::string, unsigned int > BoneNamePaletteIndex
Definition RigTransformHardware:45
#define OSGANIMATION_EXPORT
Definition Export:40