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