OpenSceneGraph  3.0.1
Public Member Functions | Public Attributes | Protected Member Functions
osg::Texture::TextureObject Class Reference
Inheritance diagram for osg::Texture::TextureObject:
Inheritance graph
[legend]

List of all members.

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 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 ()

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 ( ) [protected, virtual]

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


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

osg logo
Generated at Mon Oct 3 2011 12:39:44 for the OpenSceneGraph by doxygen 1.7.5.