![]() |
VR-Forces 5.0.1 Developer's Guide
|
a helper struct to send basic primitives to video card
Public Member Functions | |
| DtFxStreamedVboData () | |
| ~DtFxStreamedVboData () | |
| void | releaseGLObjects (osg::State *state) const |
| void | init () |
| void | setName (const char *name) |
| void | update (const bdiVec3fArray &verts, const bdiVec4fArray *colors, const bdiVec3fArray *normals, const bdiVec2fArray *uvs, const bdiUShortArray *index_buffer) |
| void | updateBuffer (GLuint &id, const char *suffix, int size, void *data) |
| void | draw (const bdiMat4f &model_matrix, const bdiVec4f &default_color=bdiVec4f(1, 1, 1, 1)) |
| 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 |