OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
osg::Texture::TextureObject Class Reference

#include <Texture.h>

Inheritance diagram for osg::Texture::TextureObject:
Inheritance graph
[legend]
Collaboration diagram for osg::Texture::TextureObject:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 990 of file Texture.h.

Constructor & Destructor Documentation

osg::Texture::TextureObject::TextureObject ( Texture texture,
GLuint  id,
GLenum  target 
)
inline

Definition at line 994 of file Texture.h.

osg::Texture::TextureObject::TextureObject ( Texture texture,
GLuint  id,
const TextureProfile profile 
)
inline

Definition at line 1004 of file Texture.h.

osg::Texture::TextureObject::TextureObject ( Texture texture,
GLuint  id,
GLenum  target,
GLint  numMipmapLevels,
GLenum  internalFormat,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border 
)
inline

Definition at line 1014 of file Texture.h.

virtual osg::Texture::TextureObject::~TextureObject ( )
protectedvirtual

Member Function Documentation

void osg::Texture::TextureObject::bind ( )
Texture* osg::Texture::TextureObject::getTexture ( ) const
inline

Definition at line 1053 of file Texture.h.

double osg::Texture::TextureObject::getTimeStamp ( ) const
inline

Definition at line 1056 of file Texture.h.

GLenum osg::Texture::TextureObject::id ( ) const
inline

Definition at line 1047 of file Texture.h.

bool osg::Texture::TextureObject::isAllocated ( ) const
inline

Definition at line 1067 of file Texture.h.

bool osg::Texture::TextureObject::isReusable ( ) const
inline

Definition at line 1069 of file Texture.h.

bool osg::Texture::TextureObject::match ( GLenum  target,
GLint  numMipmapLevels,
GLenum  internalFormat,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border 
)
inline

Definition at line 1032 of file Texture.h.

void osg::Texture::TextureObject::setAllocated ( bool  allocated = true)
inline

Definition at line 1058 of file Texture.h.

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

Definition at line 1052 of file Texture.h.

void osg::Texture::TextureObject::setTimeStamp ( double  timestamp)
inline

Definition at line 1055 of file Texture.h.

unsigned int osg::Texture::TextureObject::size ( ) const
inline

Definition at line 1050 of file Texture.h.

GLenum osg::Texture::TextureObject::target ( ) const
inline

Definition at line 1048 of file Texture.h.

Member Data Documentation

bool osg::Texture::TextureObject::_allocated

Definition at line 1078 of file Texture.h.

unsigned int osg::Texture::TextureObject::_frameLastUsed

Definition at line 1079 of file Texture.h.

GLuint osg::Texture::TextureObject::_id

Definition at line 1072 of file Texture.h.

TextureObject* osg::Texture::TextureObject::_next

Definition at line 1076 of file Texture.h.

TextureObject* osg::Texture::TextureObject::_previous

Definition at line 1075 of file Texture.h.

TextureProfile osg::Texture::TextureObject::_profile

Definition at line 1073 of file Texture.h.

TextureObjectSet* osg::Texture::TextureObject::_set

Definition at line 1074 of file Texture.h.

Texture* osg::Texture::TextureObject::_texture

Definition at line 1077 of file Texture.h.

double osg::Texture::TextureObject::_timeStamp

Definition at line 1080 of file Texture.h.


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