![]() |
VR-Forces 4.8 Class Documentation
|
a helper struct to send basic primitives to video card More...
Public Member Functions | |
| DtStreamedVboData () | |
| CTOR. More... | |
| ~DtStreamedVboData () | |
| DTOR. More... | |
| void | releaseGLObjects (osg::State *state) const |
| frees gl memory More... | |
| void | init () |
| inits memory More... | |
| void | setName (const char *name) |
| name for debugging More... | |
| void | update (const std::vector< osg::Vec3f > &verts, const std::vector< osg::Vec4f > *colors, const std::vector< osg::Vec3f > *normals, const std::vector< osg::Vec2f > *uvs, const osg::UShortArray *index_buffer) |
| updates VBO with included data More... | |
| void | updateBuffer (GLuint &id, const char *suffix, int size, void *data) |
| called by update More... | |
| void | draw (const osg::Matrixf &model_matrix, const osg::Vec4 &default_color=osg::Vec4(1, 1, 1, 1)) |
| draws buffer More... | |
a helper struct to send basic primitives to video card
| makVrv::DtStreamedVboData::DtStreamedVboData | ( | ) |
CTOR.
| makVrv::DtStreamedVboData::~DtStreamedVboData | ( | ) |
DTOR.
| void makVrv::DtStreamedVboData::releaseGLObjects | ( | osg::State * | state | ) | const |
frees gl memory
| void makVrv::DtStreamedVboData::init | ( | ) |
inits memory
| void makVrv::DtStreamedVboData::setName | ( | const char * | name | ) |
name for debugging
| void makVrv::DtStreamedVboData::update | ( | const std::vector< osg::Vec3f > & | verts, |
| const std::vector< osg::Vec4f > * | colors, | ||
| const std::vector< osg::Vec3f > * | normals, | ||
| const std::vector< osg::Vec2f > * | uvs, | ||
| const osg::UShortArray * | index_buffer | ||
| ) |
updates VBO with included data
| void makVrv::DtStreamedVboData::updateBuffer | ( | GLuint & | id, |
| const char * | suffix, | ||
| int | size, | ||
| void * | data | ||
| ) |
called by update
| void makVrv::DtStreamedVboData::draw | ( | const osg::Matrixf & | model_matrix, |
| const osg::Vec4 & | default_color = osg::Vec4(1, 1, 1, 1) |
||
| ) |
draws buffer
| std::string makVrv::DtStreamedVboData::m_name |
| int makVrv::DtStreamedVboData::m_primitive_size |
| int makVrv::DtStreamedVboData::m_index_count |
| int makVrv::DtStreamedVboData::m_intialized |
| int makVrv::DtStreamedVboData::m_primitive_type |