OpenSceneGraph
3.0.1
|
Extensions class which encapsulates the querying of extensions and associated function pointers, and provide convenience wrappers to check for the extensions or use the associated functions. More...
Public Member Functions | |
Extensions (unsigned int contextID) | |
Extensions (const Extensions &rhs) | |
void | lowestCommonDenominator (const Extensions &rhs) |
void | setupGLExtensions (unsigned int contextID) |
void | setVertexProgramSupported (bool flag) |
bool | isVertexProgramSupported () const |
void | setSecondaryColorSupported (bool flag) |
bool | isSecondaryColorSupported () const |
void | setFogCoordSupported (bool flag) |
bool | isFogCoordSupported () const |
void | setMultiTexSupported (bool flag) |
bool | isMultiTexSupported () const |
void | setOcclusionQuerySupported (bool flag) |
bool | isOcclusionQuerySupported () const |
void | setARBOcclusionQuerySupported (bool flag) |
bool | isARBOcclusionQuerySupported () const |
void | setTimerQuerySupported (bool flag) |
bool | isTimerQuerySupported () const |
void | setARBTimerQuerySupported (bool flag) |
bool | isARBTimerQuerySupported () const |
void | glSecondaryColor3ubv (const GLubyte *coord) const |
void | glSecondaryColor3fv (const GLfloat *coord) const |
void | glFogCoordfv (const GLfloat *coord) const |
void | glMultiTexCoord1f (GLenum target, GLfloat coord) const |
void | glMultiTexCoord2fv (GLenum target, const GLfloat *coord) const |
void | glMultiTexCoord3fv (GLenum target, const GLfloat *coord) const |
void | glMultiTexCoord4fv (GLenum target, const GLfloat *coord) const |
void | glMultiTexCoord1d (GLenum target, GLdouble coord) const |
void | glMultiTexCoord2dv (GLenum target, const GLdouble *coord) const |
void | glMultiTexCoord3dv (GLenum target, const GLdouble *coord) const |
void | glMultiTexCoord4dv (GLenum target, const GLdouble *coord) const |
void | glVertexAttrib1s (unsigned int index, GLshort s) const |
void | glVertexAttrib1f (unsigned int index, GLfloat f) const |
void | glVertexAttrib1d (unsigned int index, GLdouble f) const |
void | glVertexAttrib2fv (unsigned int index, const GLfloat *v) const |
void | glVertexAttrib3fv (unsigned int index, const GLfloat *v) const |
void | glVertexAttrib4fv (unsigned int index, const GLfloat *v) const |
void | glVertexAttrib2dv (unsigned int index, const GLdouble *v) const |
void | glVertexAttrib3dv (unsigned int index, const GLdouble *v) const |
void | glVertexAttrib4dv (unsigned int index, const GLdouble *v) const |
void | glVertexAttrib4ubv (unsigned int index, const GLubyte *v) const |
void | glVertexAttrib4Nubv (unsigned int index, const GLubyte *v) const |
void | glGenBuffers (GLsizei n, GLuint *buffers) const |
void | glBindBuffer (GLenum target, GLuint buffer) const |
void | glBufferData (GLenum target, GLsizeiptrARB size, const GLvoid *data, GLenum usage) const |
void | glBufferSubData (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data) const |
void | glDeleteBuffers (GLsizei n, const GLuint *buffers) const |
GLboolean | glIsBuffer (GLuint buffer) const |
void | glGetBufferSubData (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data) const |
GLvoid * | glMapBuffer (GLenum target, GLenum access) const |
GLboolean | glUnmapBuffer (GLenum target) const |
void | glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params) const |
void | glGetBufferPointerv (GLenum target, GLenum pname, GLvoid **params) const |
void | glGenOcclusionQueries (GLsizei n, GLuint *ids) const |
void | glDeleteOcclusionQueries (GLsizei n, const GLuint *ids) const |
GLboolean | glIsOcclusionQuery (GLuint id) const |
void | glBeginOcclusionQuery (GLuint id) const |
void | glEndOcclusionQuery () const |
void | glGetOcclusionQueryiv (GLuint id, GLenum pname, GLint *params) const |
void | glGetOcclusionQueryuiv (GLuint id, GLenum pname, GLuint *params) const |
void | glGetQueryiv (GLenum target, GLenum pname, GLint *params) const |
void | glGenQueries (GLsizei n, GLuint *ids) const |
void | glBeginQuery (GLenum target, GLuint id) const |
void | glEndQuery (GLenum target) const |
void | glQueryCounter (GLuint id, GLenum target) const |
GLboolean | glIsQuery (GLuint id) const |
void | glDeleteQueries (GLsizei n, const GLuint *ids) const |
void | glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params) const |
void | glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params) const |
void | glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64EXT *params) const |
void | glGetInteger64v (GLenum pname, GLint64EXT *params) const |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (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. | |
ObserverSet * | getObserverSet () const |
Get the ObserverSet if one is attached, otherwise return NULL. | |
ObserverSet * | getOrCreateObserverSet () 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 GLshort | s |
typedef GLfloat | f |
typedef GLdouble | f |
typedef const GLfloat * | v |
typedef const GLdouble * | v |
typedef const GLubyte * | v |
typedef GLfloat | coord |
typedef const GLfloat * | coord |
typedef GLdouble | coord |
typedef const GLdouble * | coord |
typedef GLuint * | buffers |
typedef GLuint | buffer |
typedef GLsizeiptrARB | size |
typedef GLsizeiptrARB const GLvoid * | data |
typedef GLsizeiptrARB const GLvoid GLenum | usage |
typedef GLintptrARB | offset |
typedef GLintptrARB GLsizeiptrARB | size |
typedef GLintptrARB GLsizeiptrARB const GLvoid * | data |
typedef const GLuint * | buffers |
typedef GLintptrARB | offset |
typedef GLintptrARB GLsizeiptrARB | size |
typedef GLintptrARB GLsizeiptrARB GLvoid * | data |
typedef GLvoid *GL_APIENTRY * | MapBufferProc (GLenum target, GLenum access) |
typedef GLenum | pname |
typedef GLenum GLint * | params |
typedef GLenum | pname |
typedef GLenum GLvoid ** | params |
typedef GLuint * | ids |
typedef const GLuint * | ids |
typedef GLenum | pname |
typedef GLenum GLint * | params |
typedef GLenum | pname |
typedef GLenum GLuint * | params |
typedef GLenum | pname |
typedef GLenum GLuint64EXT * | params |
typedef GLuint * | ids |
typedef const GLuint * | ids |
typedef GLuint | id |
typedef void(GL_APIENTRY * | QueryCounterProc )(GLuint id, GLenum target) |
typedef GLenum | pname |
typedef GLenum GLint * | params |
typedef GLenum | pname |
typedef GLenum GLint * | params |
typedef GLenum | pname |
typedef GLenum GLuint * | params |
typedef GLenum | pname |
typedef GLenum GLuint64EXT * | params |
typedef GLint64EXT * | params |
Protected Member Functions | |
typedef | void (GL_APIENTRY *FogCoordProc)(const GLfloat *coord) |
typedef | void (GL_APIENTRY *VertexAttrib1sProc)(GLuint index |
typedef | void (GL_APIENTRY *VertexAttrib1fProc)(GLuint index |
typedef | void (GL_APIENTRY *VertexAttrib1dProc)(GLuint index |
typedef | void (GL_APIENTRY *VertexAttribfvProc)(GLuint index |
typedef | void (GL_APIENTRY *VertexAttribdvProc)(GLuint index |
typedef | void (GL_APIENTRY *VertexAttribubvProc)(GLuint index |
typedef | void (GL_APIENTRY *SecondaryColor3ubvProc)(const GLubyte *coord) |
typedef | void (GL_APIENTRY *SecondaryColor3fvProc)(const GLfloat *coord) |
typedef | void (GL_APIENTRY *MultiTexCoord1fProc)(GLenum target |
typedef | void (GL_APIENTRY *MultiTexCoordfvProc)(GLenum target |
typedef | void (GL_APIENTRY *MultiTexCoord1dProc)(GLenum target |
typedef | void (GL_APIENTRY *MultiTexCoorddvProc)(GLenum target |
typedef | void (GL_APIENTRY *GenBuffersProc)(GLsizei n |
typedef | void (GL_APIENTRY *BindBufferProc)(GLenum target |
typedef | void (GL_APIENTRY *BufferDataProc)(GLenum target |
typedef | void (GL_APIENTRY *BufferSubDataProc)(GLenum target |
typedef | void (GL_APIENTRY *DeleteBuffersProc)(GLsizei n |
typedef | GLboolean (GL_APIENTRY *IsBufferProc)(GLuint buffer) |
typedef | void (GL_APIENTRY *GetBufferSubDataProc)(GLenum target |
typedef | GLboolean (GL_APIENTRY *UnmapBufferProc)(GLenum target) |
typedef | void (GL_APIENTRY *GetBufferParameterivProc)(GLenum target |
typedef | void (GL_APIENTRY *GetBufferPointervProc)(GLenum target |
typedef | void (GL_APIENTRY *GenOcclusionQueriesProc)(GLsizei n |
typedef | void (GL_APIENTRY *DeleteOcclusionQueriesProc)(GLsizei n |
typedef | GLboolean (GL_APIENTRY *IsOcclusionQueryProc)(GLuint id) |
typedef | void (GL_APIENTRY *BeginOcclusionQueryProc)(GLuint id) |
typedef | void (GL_APIENTRY *EndOcclusionQueryProc)() |
typedef | void (GL_APIENTRY *GetOcclusionQueryivProc)(GLuint id |
typedef | void (GL_APIENTRY *GetOcclusionQueryuivProc)(GLuint id |
typedef | void (GL_APIENTRY *GetOcclusionQueryui64vProc)(GLuint id |
typedef | void (GL_APIENTRY *GenQueriesProc)(GLsizei n |
typedef | void (GL_APIENTRY *DeleteQueriesProc)(GLsizei n |
typedef | GLboolean (GL_APIENTRY *IsQueryProc)(GLuint id) |
typedef | void (GL_APIENTRY *BeginQueryProc)(GLenum target |
typedef | void (GL_APIENTRY *EndQueryProc)(GLenum target) |
typedef | void (GL_APIENTRY *GetQueryivProc)(GLenum target |
typedef | void (GL_APIENTRY *GetQueryObjectivProc)(GLuint id |
typedef | void (GL_APIENTRY *GetQueryObjectuivProc)(GLuint id |
typedef | void (GL_APIENTRY *GetQueryObjectui64vProc)(GLuint id |
typedef | void (GL_APIENTRY *GetInteger64vProc)(GLenum pname |
~Extensions () | |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Friends | |
class | ArrayDispatchers |
Additional Inherited Members | |
![]() | |
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 DeleteHandler * | getDeleteHandler () |
Get a DeleteHandler. |
Extensions class which encapsulates the querying of extensions and associated function pointers, and provide convenience wrappers to check for the extensions or use the associated functions.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
osg::Drawable::Extensions::Extensions | ( | unsigned int | contextID | ) |
osg::Drawable::Extensions::Extensions | ( | const Extensions & | rhs | ) |
|
inlineprotected |
void osg::Drawable::Extensions::glBeginOcclusionQuery | ( | GLuint | id | ) | const |
void osg::Drawable::Extensions::glBeginQuery | ( | GLenum | target, |
GLuint | id | ||
) | const |
void osg::Drawable::Extensions::glBindBuffer | ( | GLenum | target, |
GLuint | buffer | ||
) | const |
|
protected |
|
protected |
|
protected |
|
protected |
void osg::Drawable::Extensions::glBufferData | ( | GLenum | target, |
GLsizeiptrARB | size, | ||
const GLvoid * | data, | ||
GLenum | usage | ||
) | const |
void osg::Drawable::Extensions::glBufferSubData | ( | GLenum | target, |
GLintptrARB | offset, | ||
GLsizeiptrARB | size, | ||
const GLvoid * | data | ||
) | const |
void osg::Drawable::Extensions::glDeleteBuffers | ( | GLsizei | n, |
const GLuint * | buffers | ||
) | const |
void osg::Drawable::Extensions::glDeleteOcclusionQueries | ( | GLsizei | n, |
const GLuint * | ids | ||
) | const |
void osg::Drawable::Extensions::glDeleteQueries | ( | GLsizei | n, |
const GLuint * | ids | ||
) | const |
void osg::Drawable::Extensions::glEndOcclusionQuery | ( | ) | const |
void osg::Drawable::Extensions::glEndQuery | ( | GLenum | target | ) | const |
void osg::Drawable::Extensions::glFogCoordfv | ( | const GLfloat * | coord | ) | const |
void osg::Drawable::Extensions::glGenBuffers | ( | GLsizei | n, |
GLuint * | buffers | ||
) | const |
void osg::Drawable::Extensions::glGenOcclusionQueries | ( | GLsizei | n, |
GLuint * | ids | ||
) | const |
void osg::Drawable::Extensions::glGenQueries | ( | GLsizei | n, |
GLuint * | ids | ||
) | const |
void osg::Drawable::Extensions::glGetBufferParameteriv | ( | GLenum | target, |
GLenum | pname, | ||
GLint * | params | ||
) | const |
void osg::Drawable::Extensions::glGetBufferPointerv | ( | GLenum | target, |
GLenum | pname, | ||
GLvoid ** | params | ||
) | const |
void osg::Drawable::Extensions::glGetBufferSubData | ( | GLenum | target, |
GLintptrARB | offset, | ||
GLsizeiptrARB | size, | ||
GLvoid * | data | ||
) | const |
void osg::Drawable::Extensions::glGetInteger64v | ( | GLenum | pname, |
GLint64EXT * | params | ||
) | const |
void osg::Drawable::Extensions::glGetOcclusionQueryiv | ( | GLuint | id, |
GLenum | pname, | ||
GLint * | params | ||
) | const |
void osg::Drawable::Extensions::glGetOcclusionQueryuiv | ( | GLuint | id, |
GLenum | pname, | ||
GLuint * | params | ||
) | const |
void osg::Drawable::Extensions::glGetQueryiv | ( | GLenum | target, |
GLenum | pname, | ||
GLint * | params | ||
) | const |
void osg::Drawable::Extensions::glGetQueryObjectiv | ( | GLuint | id, |
GLenum | pname, | ||
GLint * | params | ||
) | const |
void osg::Drawable::Extensions::glGetQueryObjectui64v | ( | GLuint | id, |
GLenum | pname, | ||
GLuint64EXT * | params | ||
) | const |
void osg::Drawable::Extensions::glGetQueryObjectuiv | ( | GLuint | id, |
GLenum | pname, | ||
GLuint * | params | ||
) | const |
GLboolean osg::Drawable::Extensions::glIsBuffer | ( | GLuint | buffer | ) | const |
GLboolean osg::Drawable::Extensions::glIsOcclusionQuery | ( | GLuint | id | ) | const |
GLboolean osg::Drawable::Extensions::glIsQuery | ( | GLuint | id | ) | const |
GLvoid* osg::Drawable::Extensions::glMapBuffer | ( | GLenum | target, |
GLenum | access | ||
) | const |
void osg::Drawable::Extensions::glMultiTexCoord1f | ( | GLenum | target, |
GLfloat | coord | ||
) | const |
void osg::Drawable::Extensions::glMultiTexCoord2fv | ( | GLenum | target, |
const GLfloat * | coord | ||
) | const |
void osg::Drawable::Extensions::glMultiTexCoord3fv | ( | GLenum | target, |
const GLfloat * | coord | ||
) | const |
void osg::Drawable::Extensions::glMultiTexCoord4fv | ( | GLenum | target, |
const GLfloat * | coord | ||
) | const |
void osg::Drawable::Extensions::glQueryCounter | ( | GLuint | id, |
GLenum | target | ||
) | const |
void osg::Drawable::Extensions::glSecondaryColor3fv | ( | const GLfloat * | coord | ) | const |
void osg::Drawable::Extensions::glSecondaryColor3ubv | ( | const GLubyte * | coord | ) | const |
GLboolean osg::Drawable::Extensions::glUnmapBuffer | ( | GLenum | target | ) | const |
void osg::Drawable::Extensions::glVertexAttrib1f | ( | unsigned int | index, |
GLfloat | f | ||
) | const |
void osg::Drawable::Extensions::glVertexAttrib1s | ( | unsigned int | index, |
GLshort | s | ||
) | const |
void osg::Drawable::Extensions::glVertexAttrib2fv | ( | unsigned int | index, |
const GLfloat * | v | ||
) | const |
void osg::Drawable::Extensions::glVertexAttrib3fv | ( | unsigned int | index, |
const GLfloat * | v | ||
) | const |
void osg::Drawable::Extensions::glVertexAttrib4fv | ( | unsigned int | index, |
const GLfloat * | v | ||
) | const |
void osg::Drawable::Extensions::glVertexAttrib4Nubv | ( | unsigned int | index, |
const GLubyte * | v | ||
) | const |
void osg::Drawable::Extensions::glVertexAttrib4ubv | ( | unsigned int | index, |
const GLubyte * | v | ||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void osg::Drawable::Extensions::lowestCommonDenominator | ( | const Extensions & | rhs | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void osg::Drawable::Extensions::setupGLExtensions | ( | unsigned int | contextID | ) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
![]() | Generated at Tue Sep 4 2012 06:14:32 for the OpenSceneGraph by doxygen 1.8.1.2. |