Added initializers
This commit is contained in:
parent
c8a7ce4e52
commit
27595e9f02
@ -26,9 +26,15 @@ namespace osgAnimation
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RigTransform() {}
|
RigTransform() {}
|
||||||
virtual ~RigTransform() {}
|
RigTransform(const RigTransform&, const osg::CopyOp&) {}
|
||||||
|
|
||||||
|
META_Object(osgAnimation,RigTransform)
|
||||||
|
|
||||||
virtual void operator()(RigGeometry&) {}
|
virtual void operator()(RigGeometry&) {}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual ~RigTransform() {}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,8 @@ namespace osgAnimation
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
RigTransformHardware();
|
RigTransformHardware();
|
||||||
RigTransformHardware(const RigTransformHardware&,const osg::CopyOp&){};
|
|
||||||
|
RigTransformHardware(const RigTransformHardware& rth, const osg::CopyOp& copyop);
|
||||||
|
|
||||||
META_Object(osgAnimation,RigTransformHardware)
|
META_Object(osgAnimation,RigTransformHardware)
|
||||||
|
|
||||||
|
@ -27,6 +27,20 @@ RigTransformHardware::RigTransformHardware()
|
|||||||
_nbVertexes = 0;
|
_nbVertexes = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RigTransformHardware::RigTransformHardware(const RigTransformHardware& rth, const osg::CopyOp& copyop):
|
||||||
|
RigTransform(rth, copyop),
|
||||||
|
_bonesPerVertex(rth._bonesPerVertex),
|
||||||
|
_nbVertexes(rth._nbVertexes),
|
||||||
|
_vertexIndexMatrixWeightList(rth._vertexIndexMatrixWeightList),
|
||||||
|
_bonePalette(rth._bonePalette),
|
||||||
|
_boneNameToPalette(rth._boneNameToPalette),
|
||||||
|
_boneWeightAttribArrays(rth._boneWeightAttribArrays),
|
||||||
|
_uniformMatrixPalette(rth._uniformMatrixPalette),
|
||||||
|
_shader(rth._shader),
|
||||||
|
_needInit(false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
osg::Vec4Array* RigTransformHardware::getVertexAttrib(int index)
|
osg::Vec4Array* RigTransformHardware::getVertexAttrib(int index)
|
||||||
{
|
{
|
||||||
if (index >= (int)_boneWeightAttribArrays.size())
|
if (index >= (int)_boneWeightAttribArrays.size())
|
||||||
|
Loading…
Reference in New Issue
Block a user