openscenegraph
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
osg::Texture::TextureObject Class Reference
Inheritance diagram for osg::Texture::TextureObject:
osg::Referenced

Public Member Functions

 TextureObject (Texture *texture, GLuint id, GLenum target)
 TextureObject (Texture *texture, GLuint id, const TextureProfile &profile)
 TextureObject (Texture *texture, GLuint id, GLenum target, GLint numMipmapLevels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border)
bool match (GLenum target, GLint numMipmapLevels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border)
void bind ()
GLenum id () const
GLenum target () const
unsigned int size () const
void setTexture (Texture *texture)
TexturegetTexture () const
void setTimeStamp (double timestamp)
double getTimeStamp () const
void setAllocated (bool allocated=true)
void setAllocated (GLint numMipmapLevels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border)
bool isAllocated () const
bool isReusable () const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const

Public Attributes

GLuint _id
TextureProfile _profile
TextureObjectSet_set
TextureObject_previous
TextureObject_next
Texture_texture
bool _allocated
unsigned int _frameLastUsed
double _timeStamp

Protected Member Functions

virtual ~TextureObject ()
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
static bool getThreadSafeReferenceCounting ()
static void setDeleteHandler (DeleteHandler *handler)
static DeleteHandlergetDeleteHandler ()
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Constructor & Destructor Documentation

osg::Texture::TextureObject::TextureObject ( Texture texture,
GLuint  id,
GLenum  target 
)
inline
osg::Texture::TextureObject::TextureObject ( Texture texture,
GLuint  id,
const TextureProfile profile 
)
inline
osg::Texture::TextureObject::TextureObject ( Texture texture,
GLuint  id,
GLenum  target,
GLint  numMipmapLevels,
GLenum  internalFormat,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border 
)
inline
virtual osg::Texture::TextureObject::~TextureObject ( )
protectedvirtual

Member Function Documentation

void osg::Texture::TextureObject::bind ( )
Texture* osg::Texture::TextureObject::getTexture ( ) const
inline
double osg::Texture::TextureObject::getTimeStamp ( ) const
inline
GLenum osg::Texture::TextureObject::id ( ) const
inline
bool osg::Texture::TextureObject::isAllocated ( ) const
inline
bool osg::Texture::TextureObject::isReusable ( ) const
inline
bool osg::Texture::TextureObject::match ( GLenum  target,
GLint  numMipmapLevels,
GLenum  internalFormat,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border 
)
inline
void osg::Texture::TextureObject::setAllocated ( bool  allocated = true)
inline
void osg::Texture::TextureObject::setAllocated ( GLint  numMipmapLevels,
GLenum  internalFormat,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border 
)
void osg::Texture::TextureObject::setTexture ( Texture texture)
inline
void osg::Texture::TextureObject::setTimeStamp ( double  timestamp)
inline
unsigned int osg::Texture::TextureObject::size ( ) const
inline
GLenum osg::Texture::TextureObject::target ( ) const
inline

Member Data Documentation

bool osg::Texture::TextureObject::_allocated
unsigned int osg::Texture::TextureObject::_frameLastUsed
GLuint osg::Texture::TextureObject::_id
TextureObject* osg::Texture::TextureObject::_next
TextureObject* osg::Texture::TextureObject::_previous
TextureProfile osg::Texture::TextureObject::_profile
TextureObjectSet* osg::Texture::TextureObject::_set
Texture* osg::Texture::TextureObject::_texture
double osg::Texture::TextureObject::_timeStamp

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