Added initializers
This commit is contained in:
parent
c8a7ce4e52
commit
27595e9f02
@ -1,4 +1,4 @@
|
|||||||
/* -*-c++-*-
|
/* -*-c++-*-
|
||||||
* Copyright (C) 2009 Cedric Pinson <cedric.pinson@plopbyte.net>
|
* Copyright (C) 2009 Cedric Pinson <cedric.pinson@plopbyte.net>
|
||||||
*
|
*
|
||||||
* This library is open source and may be redistributed and/or modified under
|
* This library is open source and may be redistributed and/or modified under
|
||||||
@ -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