VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
makVrv::DtStreamedVboData Struct Reference

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...
 

Public Attributes

std::string m_name
 
unsigned int m_verts_object
 
unsigned int m_colors_object
 
unsigned int m_normals_object
 
unsigned int m_index_buffer
 
unsigned int m_model_matrix_buffer
 
unsigned int m_color_array_buffer
 
int m_primitive_size
 
int m_index_count
 
int m_intialized
 
int m_primitive_type
 

Detailed Description

a helper struct to send basic primitives to video card

Constructor & Destructor Documentation

makVrv::DtStreamedVboData::DtStreamedVboData ( )

CTOR.

makVrv::DtStreamedVboData::~DtStreamedVboData ( )

DTOR.

Member Function Documentation

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

Member Data Documentation

std::string makVrv::DtStreamedVboData::m_name
unsigned int makVrv::DtStreamedVboData::m_verts_object
mutable
unsigned int makVrv::DtStreamedVboData::m_colors_object
mutable
unsigned int makVrv::DtStreamedVboData::m_normals_object
mutable
unsigned int makVrv::DtStreamedVboData::m_index_buffer
mutable
unsigned int makVrv::DtStreamedVboData::m_model_matrix_buffer
mutable
unsigned int makVrv::DtStreamedVboData::m_color_array_buffer
mutable
int makVrv::DtStreamedVboData::m_primitive_size
int makVrv::DtStreamedVboData::m_index_count
int makVrv::DtStreamedVboData::m_intialized
int makVrv::DtStreamedVboData::m_primitive_type

The documentation for this struct was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)