OpenSceneGraph  3.0.1
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
osg::Texture::Extensions Class Reference

Encapsulates queries of extension availability, obtains extension function pointers, and provides convenience wrappers for calling extension functions. More...

Inheritance diagram for osg::Texture::Extensions:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Extensions (unsigned int contextID)
void setMultiTexturingSupported (bool flag)
bool isMultiTexturingSupported () const
void setTextureFilterAnisotropicSupported (bool flag)
bool isTextureFilterAnisotropicSupported () const
void setTextureCompressionARBSupported (bool flag)
bool isTextureCompressionARBSupported () const
void setTextureCompressionS3TCSupported (bool flag)
bool isTextureCompressionS3TCSupported () const
void setTextureCompressionPVRTC2BPPSupported (bool flag)
bool isTextureCompressionPVRTC2BPPSupported () const
void setTextureCompressionPVRTC4BPPSupported (bool flag)
bool isTextureCompressionPVRTC4BPPSupported () const
void setTextureCompressionETCSupported (bool flag)
bool isTextureCompressionETCSupported () const
void setTextureCompressionRGTCSupported (bool flag)
bool isTextureCompressionRGTCSupported () const
void setTextureCompressionPVRTCSupported (bool flag)
bool isTextureCompressionPVRTCSupported () const
void setTextureMirroredRepeatSupported (bool flag)
bool isTextureMirroredRepeatSupported () const
void setTextureEdgeClampSupported (bool flag)
bool isTextureEdgeClampSupported () const
void setTextureBorderClampSupported (bool flag)
bool isTextureBorderClampSupported () const
void setGenerateMipMapSupported (bool flag)
bool isGenerateMipMapSupported () const
void setTextureMultisampledSupported (bool flag)
bool isTextureMultisampledSupported () const
void setShadowSupported (bool flag)
bool isShadowSupported () const
void setShadowAmbientSupported (bool flag)
bool isShadowAmbientSupported () const
void setTextureMaxLevelSupported (bool flag)
bool isTextureMaxLevelSupported () const
void setMaxTextureSize (GLint maxsize)
GLint maxTextureSize () const
void setNumTextureUnits (GLint nunits)
GLint numTextureUnits () const
bool isCompressedTexImage2DSupported () const
bool isCompressedTexSubImage2DSupported () const
bool isClientStorageSupported () const
bool isNonPowerOfTwoTextureSupported (GLenum filter) const
void setTextureIntegerSupported (bool flag)
bool isTextureIntegerSupported () const
void glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data) const
void glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data) const
void glGetCompressedTexImage (GLenum target, GLint level, GLvoid *data) const
void glTexImage2DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) const
void glTexParameterIiv (GLenum target, GLenum pname, const GLint *data) const
void glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *data) const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe.
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe.
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref().
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it.
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int referenceCount () const
 Return the number of pointers currently referencing this object.
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL.
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet.
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted.
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object.

Protected Types

typedef GLint level
typedef GLint GLenum internalformat
typedef GLint GLenum GLsizei width
typedef GLint GLenum GLsizei
GLsizei 
height
typedef GLint GLenum GLsizei
GLsizei GLint 
border
typedef GLint GLenum GLsizei
GLsizei GLint GLsizei 
imageSize
typedef GLint GLenum GLsizei
GLsizei GLint GLsizei const
GLvoid * 
data
typedef GLint level
typedef GLint GLint xoffset
typedef GLint GLint GLint yoffset
typedef GLint GLint GLint GLsizei width
typedef GLint GLint GLint
GLsizei GLsizei 
height
typedef GLint GLint GLint
GLsizei GLsizei GLenum 
format
typedef GLint GLint GLint
GLsizei GLsizei GLenum GLsizei 
imageSize
typedef GLint GLint GLint
GLsizei GLsizei GLenum GLsizei
const GLvoid * 
data
typedef GLint level
typedef GLint GLvoid * data
typedef void(GL_APIENTRYTexImage2DMultisample )(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
typedef void(GL_APIENTRYTexParameterIivProc )(GLenum target, GLenum pname, const GLint *data)
typedef void(GL_APIENTRYTexParameterIuivProc )(GLenum target, GLenum pname, const GLuint *data)

Protected Member Functions

 ~Extensions ()
typedef void (GL_APIENTRY *CompressedTexImage2DArbProc)(GLenum target
typedef void (GL_APIENTRY *CompressedTexSubImage2DArbProc)(GLenum target
typedef void (GL_APIENTRY *GetCompressedTexImageArbProc)(GLenum target
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Protected Attributes

CompressedTexImage2DArbProc _glCompressedTexImage2D
CompressedTexSubImage2DArbProc _glCompressedTexSubImage2D
GetCompressedTexImageArbProc _glGetCompressedTexImage
TexImage2DMultisample _glTexImage2DMultisample
TexParameterIivProc _glTexParameterIiv
TexParameterIuivProc _glTexParameterIuiv
bool _isMultiTexturingSupported
bool _isTextureFilterAnisotropicSupported
bool _isTextureCompressionARBSupported
bool _isTextureCompressionS3TCSupported
bool _isTextureCompressionPVRTC2BPPSupported
bool _isTextureCompressionPVRTC4BPPSupported
bool _isTextureCompressionETCSupported
bool _isTextureCompressionRGTCSupported
bool _isTextureCompressionPVRTCSupported
bool _isTextureMirroredRepeatSupported
bool _isTextureEdgeClampSupported
bool _isTextureBorderClampSupported
bool _isGenerateMipMapSupported
bool _isTextureMultisampledSupported
bool _isShadowSupported
bool _isShadowAmbientSupported
bool _isClientStorageSupported
bool _isNonPowerOfTwoTextureMipMappedSupported
bool _isNonPowerOfTwoTextureNonMipMappedSupported
bool _isTextureIntegerEXTSupported
bool _isTextureMaxLevelSupported
GLint _maxTextureSize
GLint _numTextureUnits
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::Mutex * getGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced.
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 Set whether reference counting should use a mutex for thread safe reference counting.
static bool getThreadSafeReferenceCounting ()
 Get whether reference counting is active.
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated.
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler.

Detailed Description

Encapsulates queries of extension availability, obtains extension function pointers, and provides convenience wrappers for calling extension functions.


Member Typedef Documentation

typedef GLint GLenum GLsizei GLsizei GLint osg::Texture::Extensions::border
protected
typedef GLint GLenum GLsizei GLsizei GLint GLsizei const GLvoid* osg::Texture::Extensions::data
protected
typedef GLint GLint GLint GLsizei GLsizei GLenum GLsizei const GLvoid* osg::Texture::Extensions::data
protected
typedef GLint GLvoid* osg::Texture::Extensions::data
protected
typedef GLint GLint GLint GLsizei GLsizei GLenum osg::Texture::Extensions::format
protected
typedef GLint GLenum GLsizei GLsizei osg::Texture::Extensions::height
protected
typedef GLint GLint GLint GLsizei GLsizei osg::Texture::Extensions::height
protected
typedef GLint GLenum GLsizei GLsizei GLint GLsizei osg::Texture::Extensions::imageSize
protected
typedef GLint GLint GLint GLsizei GLsizei GLenum GLsizei osg::Texture::Extensions::imageSize
protected
typedef GLint GLenum osg::Texture::Extensions::internalformat
protected
typedef GLint osg::Texture::Extensions::level
protected
typedef GLint osg::Texture::Extensions::level
protected
typedef GLint osg::Texture::Extensions::level
protected
typedef void(GL_APIENTRY * osg::Texture::Extensions::TexImage2DMultisample)(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
protected
typedef void(GL_APIENTRY * osg::Texture::Extensions::TexParameterIivProc)(GLenum target, GLenum pname, const GLint *data)
protected
typedef void(GL_APIENTRY * osg::Texture::Extensions::TexParameterIuivProc)(GLenum target, GLenum pname, const GLuint *data)
protected
typedef GLint GLenum GLsizei osg::Texture::Extensions::width
protected
typedef GLint GLint GLint GLsizei osg::Texture::Extensions::width
protected
typedef GLint GLint osg::Texture::Extensions::xoffset
protected
typedef GLint GLint GLint osg::Texture::Extensions::yoffset
protected

Constructor & Destructor Documentation

osg::Texture::Extensions::Extensions ( unsigned int  contextID)
osg::Texture::Extensions::~Extensions ( )
inlineprotected

Member Function Documentation

void osg::Texture::Extensions::glCompressedTexImage2D ( GLenum  target,
GLint  level,
GLenum  internalformat,
GLsizei  width,
GLsizei  height,
GLint  border,
GLsizei  imageSize,
const GLvoid *  data 
) const
inline
void osg::Texture::Extensions::glCompressedTexSubImage2D ( GLenum  target,
GLint  level,
GLint  xoffset,
GLint  yoffset,
GLsizei  width,
GLsizei  height,
GLenum  format,
GLsizei  imageSize,
const GLvoid *  data 
) const
inline
void osg::Texture::Extensions::glGetCompressedTexImage ( GLenum  target,
GLint  level,
GLvoid *  data 
) const
inline
void osg::Texture::Extensions::glTexImage2DMultisample ( GLenum  target,
GLsizei  samples,
GLint  internalformat,
GLsizei  width,
GLsizei  height,
GLboolean  fixedsamplelocations 
) const
inline
void osg::Texture::Extensions::glTexParameterIiv ( GLenum  target,
GLenum  pname,
const GLint *  data 
) const
inline
void osg::Texture::Extensions::glTexParameterIuiv ( GLenum  target,
GLenum  pname,
const GLuint *  data 
) const
inline
bool osg::Texture::Extensions::isClientStorageSupported ( ) const
inline
bool osg::Texture::Extensions::isCompressedTexImage2DSupported ( ) const
inline
bool osg::Texture::Extensions::isCompressedTexSubImage2DSupported ( ) const
inline
bool osg::Texture::Extensions::isGenerateMipMapSupported ( ) const
inline
bool osg::Texture::Extensions::isMultiTexturingSupported ( ) const
inline
bool osg::Texture::Extensions::isNonPowerOfTwoTextureSupported ( GLenum  filter) const
inline
bool osg::Texture::Extensions::isShadowAmbientSupported ( ) const
inline
bool osg::Texture::Extensions::isShadowSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureBorderClampSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureCompressionARBSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureCompressionETCSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureCompressionPVRTC2BPPSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureCompressionPVRTC4BPPSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureCompressionPVRTCSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureCompressionRGTCSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureCompressionS3TCSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureEdgeClampSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureFilterAnisotropicSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureIntegerSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureMaxLevelSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureMirroredRepeatSupported ( ) const
inline
bool osg::Texture::Extensions::isTextureMultisampledSupported ( ) const
inline
GLint osg::Texture::Extensions::maxTextureSize ( ) const
inline
GLint osg::Texture::Extensions::numTextureUnits ( ) const
inline
void osg::Texture::Extensions::setGenerateMipMapSupported ( bool  flag)
inline
void osg::Texture::Extensions::setMaxTextureSize ( GLint  maxsize)
inline
void osg::Texture::Extensions::setMultiTexturingSupported ( bool  flag)
inline
void osg::Texture::Extensions::setNumTextureUnits ( GLint  nunits)
inline
void osg::Texture::Extensions::setShadowAmbientSupported ( bool  flag)
inline
void osg::Texture::Extensions::setShadowSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureBorderClampSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureCompressionARBSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureCompressionETCSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureCompressionPVRTC2BPPSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureCompressionPVRTC4BPPSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureCompressionPVRTCSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureCompressionRGTCSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureCompressionS3TCSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureEdgeClampSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureFilterAnisotropicSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureIntegerSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureMaxLevelSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureMirroredRepeatSupported ( bool  flag)
inline
void osg::Texture::Extensions::setTextureMultisampledSupported ( bool  flag)
inline
typedef osg::Texture::Extensions::void ( GL_APIENTRY CompressedTexImage2DArbProc)
protected
typedef osg::Texture::Extensions::void ( GL_APIENTRY CompressedTexSubImage2DArbProc)
protected
typedef osg::Texture::Extensions::void ( GL_APIENTRY GetCompressedTexImageArbProc)
protected

Member Data Documentation

CompressedTexImage2DArbProc osg::Texture::Extensions::_glCompressedTexImage2D
protected
CompressedTexSubImage2DArbProc osg::Texture::Extensions::_glCompressedTexSubImage2D
protected
GetCompressedTexImageArbProc osg::Texture::Extensions::_glGetCompressedTexImage
protected
TexImage2DMultisample osg::Texture::Extensions::_glTexImage2DMultisample
protected
TexParameterIivProc osg::Texture::Extensions::_glTexParameterIiv
protected
TexParameterIuivProc osg::Texture::Extensions::_glTexParameterIuiv
protected
bool osg::Texture::Extensions::_isClientStorageSupported
protected
bool osg::Texture::Extensions::_isGenerateMipMapSupported
protected
bool osg::Texture::Extensions::_isMultiTexturingSupported
protected
bool osg::Texture::Extensions::_isNonPowerOfTwoTextureMipMappedSupported
protected
bool osg::Texture::Extensions::_isNonPowerOfTwoTextureNonMipMappedSupported
protected
bool osg::Texture::Extensions::_isShadowAmbientSupported
protected
bool osg::Texture::Extensions::_isShadowSupported
protected
bool osg::Texture::Extensions::_isTextureBorderClampSupported
protected
bool osg::Texture::Extensions::_isTextureCompressionARBSupported
protected
bool osg::Texture::Extensions::_isTextureCompressionETCSupported
protected
bool osg::Texture::Extensions::_isTextureCompressionPVRTC2BPPSupported
protected
bool osg::Texture::Extensions::_isTextureCompressionPVRTC4BPPSupported
protected
bool osg::Texture::Extensions::_isTextureCompressionPVRTCSupported
protected
bool osg::Texture::Extensions::_isTextureCompressionRGTCSupported
protected
bool osg::Texture::Extensions::_isTextureCompressionS3TCSupported
protected
bool osg::Texture::Extensions::_isTextureEdgeClampSupported
protected
bool osg::Texture::Extensions::_isTextureFilterAnisotropicSupported
protected
bool osg::Texture::Extensions::_isTextureIntegerEXTSupported
protected
bool osg::Texture::Extensions::_isTextureMaxLevelSupported
protected
bool osg::Texture::Extensions::_isTextureMirroredRepeatSupported
protected
bool osg::Texture::Extensions::_isTextureMultisampledSupported
protected
GLint osg::Texture::Extensions::_maxTextureSize
protected
GLint osg::Texture::Extensions::_numTextureUnits
protected

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

osg logo
Generated at Tue Oct 9 2012 08:34:44 for the OpenSceneGraph by doxygen 1.8.1.1.