VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes | Private Member Functions
makVrv::DtBufferObjectApplyAttribute Class Referenceabstract

Manage buffer object binding state, via glBindBufferBase.

Inheritance diagram for makVrv::DtBufferObjectApplyAttribute:
Inheritance graph
[legend]

Public Member Functions

 DtBufferObjectApplyAttribute ()
 
 DtBufferObjectApplyAttribute (const DtBufferObjectApplyAttribute &copy, const osg::CopyOp &copyOp=osg::CopyOp::SHALLOW_COPY)
 
virtual ~DtBufferObjectApplyAttribute ()
 
virtual void addBufferObject (DtGlBuffer *ubo, GLuint bindingPointIndex)
 
virtual void removeBufferObject (DtGlBuffer *ubo)
 
virtual void apply (osg::State &state) const
 
virtual int compare (const StateAttribute &sa) const =0
 
virtual void releaseGLObjects (osg::State *state) const
 
virtual void setCallback (DtBufferObjectApplyAttributeCallback *callback)
 

Protected Types

typedef std::map< GLuint,
DtGlBuffer * > 
BufferMap
 

Protected Attributes

BufferMap myBufferMap
 
DtBufferObjectApplyAttributeCallbackmyCallback = nullptr
 
bool myConsecutive = false
 
std::vector< unsigned intmyConsecutiveHandlesScratch
 

Private Member Functions

DtBufferObjectApplyAttributeoperator= (const DtBufferObjectApplyAttribute &)=delete
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtBufferObjectApplyAttribute::DtBufferObjectApplyAttribute ( )

CTOR.

makVrv::DtBufferObjectApplyAttribute::DtBufferObjectApplyAttribute ( const DtBufferObjectApplyAttribute copy,
const osg::CopyOp &  copyOp = osg::CopyOp::SHALLOW_COPY 
)

copy CTOR

virtual makVrv::DtBufferObjectApplyAttribute::~DtBufferObjectApplyAttribute ( )
virtual

DTOR.

Member Function Documentation

DtBufferObjectApplyAttribute& makVrv::DtBufferObjectApplyAttribute::operator= ( const DtBufferObjectApplyAttribute )
privatedelete

Private assignment operator.

Note
Not implemented.
virtual void makVrv::DtBufferObjectApplyAttribute::addBufferObject ( DtGlBuffer ubo,
GLuint  bindingPointIndex 
)
virtual

Add a new buffer object with the given bindingPointIndex.

virtual void makVrv::DtBufferObjectApplyAttribute::removeBufferObject ( DtGlBuffer ubo)
virtual

Remove the given buffer object.

virtual void makVrv::DtBufferObjectApplyAttribute::apply ( osg::State &  state) const
virtual

Apply the given OSG state.

virtual int makVrv::DtBufferObjectApplyAttribute::compare ( const StateAttribute &  sa) const
pure virtual
virtual void makVrv::DtBufferObjectApplyAttribute::releaseGLObjects ( osg::State *  state) const
virtual

Release all manged GL objects.

virtual void makVrv::DtBufferObjectApplyAttribute::setCallback ( DtBufferObjectApplyAttributeCallback callback)
virtual

set a callback

Member Data Documentation

BufferMap makVrv::DtBufferObjectApplyAttribute::myBufferMap
protected
DtBufferObjectApplyAttributeCallback* makVrv::DtBufferObjectApplyAttribute::myCallback = nullptr
protected
bool makVrv::DtBufferObjectApplyAttribute::myConsecutive = false
protected
std::vector<unsigned int> makVrv::DtBufferObjectApplyAttribute::myConsecutiveHandlesScratch
mutableprotected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)