Public Types | |
| typedef std::map< std::string, osg::ref_ptr< osg::Texture2D > > | Name2Texture |
Public Member Functions | |
| SubMeshHardware () | |
| SubMeshHardware (Model *model, int mesh) | |
| osg::Object * | cloneType () const |
| virtual const char * | className () const |
| bool | update (void) |
| void | InitHardwareMesh (int nbIdxs, osg::VertexProgram *vp3, GlueCalHardwareModel *hardwareModel, unsigned int *vbo, unsigned int idxVbo, int maxVertexIndex) |
| void | drawImplementation (osg::State &state) const |
| bool | computeBound () const |
| osg::Object * | clone (const osg::CopyOp &) const |
| const std::string & | getName (void) const |
| void | setName (const std::string &name) |
| const std::string & | getMaterialName (void) |
| void | setMaterialName (const std::string &materialName) |
Public Attributes | |
| osg::VertexProgram * | mVp |
| int | mMeshId |
| osg::BoundingBox | _staticbbox |
Protected Member Functions | |
| ~SubMeshHardware () | |
Protected Attributes | |
| bool | mVertexProgram |
| GlueCalHardwareModel * | mHardwareModel |
| Model * | mModel |
| int | _nbIdxs |
| GLuint * | _vbo |
| int | _indexVbo |
| int | _maxVertexIndex |
| std::string | mName |
| std::string | mMaterialName |
| typedef std::map<std::string, osg::ref_ptr<osg::Texture2D> > osgCal::SubMeshHardware::Name2Texture |
| osgCal::SubMeshHardware::~SubMeshHardware | ( | ) | [protected] |
| osgCal::SubMeshHardware::SubMeshHardware | ( | ) |
| osgCal::SubMeshHardware::SubMeshHardware | ( | Model * | model, | |
| int | mesh | |||
| ) |
Creates a submesh for one model given the mesh and submesh of this mesh
| osg::Object* osgCal::SubMeshHardware::cloneType | ( | ) | const [inline] |
| virtual const char* osgCal::SubMeshHardware::className | ( | ) | const [inline, virtual] |
| bool osgCal::SubMeshHardware::update | ( | void | ) | [inline] |
| void osgCal::SubMeshHardware::InitHardwareMesh | ( | int | nbIdxs, | |
| osg::VertexProgram * | vp3, | |||
| GlueCalHardwareModel * | hardwareModel, | |||
| unsigned int * | vbo, | |||
| unsigned int | idxVbo, | |||
| int | maxVertexIndex | |||
| ) |
Init class for hardware skinning
| void osgCal::SubMeshHardware::drawImplementation | ( | osg::State & | state | ) | const |
| bool osgCal::SubMeshHardware::computeBound | ( | ) | const |
| osg::Object* osgCal::SubMeshHardware::clone | ( | const osg::CopyOp & | ) | const |
| const std::string& osgCal::SubMeshHardware::getName | ( | void | ) | const [inline] |
| void osgCal::SubMeshHardware::setName | ( | const std::string & | name | ) | [inline] |
| const std::string& osgCal::SubMeshHardware::getMaterialName | ( | void | ) | [inline] |
| void osgCal::SubMeshHardware::setMaterialName | ( | const std::string & | materialName | ) | [inline] |
| osg::VertexProgram* osgCal::SubMeshHardware::mVp |
| osg::BoundingBox osgCal::SubMeshHardware::_staticbbox |
bool osgCal::SubMeshHardware::mVertexProgram [protected] |
Model* osgCal::SubMeshHardware::mModel [mutable, protected] |
int osgCal::SubMeshHardware::_nbIdxs [protected] |
GLuint* osgCal::SubMeshHardware::_vbo [protected] |
int osgCal::SubMeshHardware::_indexVbo [protected] |
int osgCal::SubMeshHardware::_maxVertexIndex [protected] |
std::string osgCal::SubMeshHardware::mName [protected] |
std::string osgCal::SubMeshHardware::mMaterialName [protected] |
1.5.5