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

Encapsulate a gl texture object that is created/used in indirect rendering The life time of these is managed by DtIndirectGlTextureObjectManager.

Public Member Functions

 DtIndirectGlTextureObject (unsigned int textureId)
 
virtual ~DtIndirectGlTextureObject ()
 
 DtIndirectGlTextureObject ()=delete
 
 DtIndirectGlTextureObject (DtIndirectGlTextureObject &rhs)=delete
 
DtIndirectGlTextureObjectoperator= (DtIndirectGlTextureObject &rhs)=delete
 
virtual void addRef (osg::ref_ptr< const osg::Texture > osgTexture)
 
virtual void removeRef (osg::ref_ptr< const osg::Texture > osgTexture)
 
virtual bool hasReference (osg::ref_ptr< const osg::Texture > osgTexture) const
 
virtual const std::set
< osg::ref_ptr< const
osg::Texture > > & 
referencingOsgTextures (void) const
 
virtual bool isDownloaded (void) const
 
virtual unsigned int textureId (void) const
 

Public Attributes

std::set< osg::ref_ptr< const
osg::Texture > > 
myOsgTextures
 

Protected Attributes

unsigned int myGlTextureId
 

Constructor & Destructor Documentation

makVrv::DtIndirectGlTextureObject::DtIndirectGlTextureObject ( unsigned int  textureId)

constructor

virtual makVrv::DtIndirectGlTextureObject::~DtIndirectGlTextureObject ( )
virtual

destructor

makVrv::DtIndirectGlTextureObject::DtIndirectGlTextureObject ( )
delete

not allowed

makVrv::DtIndirectGlTextureObject::DtIndirectGlTextureObject ( DtIndirectGlTextureObject rhs)
delete

not allowed

Member Function Documentation

DtIndirectGlTextureObject& makVrv::DtIndirectGlTextureObject::operator= ( DtIndirectGlTextureObject rhs)
delete

not allowed

virtual void makVrv::DtIndirectGlTextureObject::addRef ( osg::ref_ptr< const osg::Texture >  osgTexture)
virtual

add ref, only if it does not exist

virtual void makVrv::DtIndirectGlTextureObject::removeRef ( osg::ref_ptr< const osg::Texture >  osgTexture)
virtual

remove ref, only if it exists

virtual bool makVrv::DtIndirectGlTextureObject::hasReference ( osg::ref_ptr< const osg::Texture >  osgTexture) const
virtual

is this osg texture referencing the underlying gl texture object?

virtual const std::set<osg::ref_ptr<const osg::Texture> >& makVrv::DtIndirectGlTextureObject::referencingOsgTextures ( void  ) const
virtual

osg textures that reference this

virtual bool makVrv::DtIndirectGlTextureObject::isDownloaded ( void  ) const
virtual

is fully downloaded(streamed)?

virtual unsigned int makVrv::DtIndirectGlTextureObject::textureId ( void  ) const
virtual

the actual gl texture object id

Member Data Documentation

std::set<osg::ref_ptr<const osg::Texture> > makVrv::DtIndirectGlTextureObject::myOsgTextures

back pointer to the osg textures that reference it (multiple textures can refer to the same texture object)

unsigned int makVrv::DtIndirectGlTextureObject::myGlTextureId
protected

the gl texture id


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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)