class OSGGL2_EXPORT osgGL2::Extensions

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

Inheritance:


Public Methods

[more] Extensions()
[more] Extensions(const Extensions& rhs)
[more]void lowestCommonDenominator(const Extensions& rhs)
[more]void setupGLExtensions()
[more]bool isGlslSupported() const
are all the extensions required for GLSL supported?
[more]void setShaderObjectsSupported(bool flag)
[more]bool isShaderObjectsSupported() const
[more]void setVertexShaderSupported(bool flag)
[more]bool isVertexShaderSupported() const
[more]void setFragmentShaderSupported(bool flag)
[more]bool isFragmentShaderSupported() const
[more]void setLanguage100Supported(bool flag)
[more]bool isLanguage100Supported() const
[more]float getLanguageVersion() const
[more]static Extensions* Get(unsigned int contextID, bool createIfNotInitalized)
Function to call to get the extension of a specified context.
[more]static void Set(unsigned int contextID, Extensions* extensions)
allows users to override the extensions across graphics contexts.
[more]GLhandleARB glCreateShaderObject(GLenum shaderType) const
[more]GLhandleARB glCreateProgramObject() const
[more]void glDeleteObject(GLhandleARB obj) const
[more]void glAttachObject(GLhandleARB containerObj, GLhandleARB obj) const
[more]void glDetachObject(GLhandleARB containerObj, GLhandleARB attachedObj) const
[more]void glShaderSource(GLhandleARB shaderObj, GLsizei count, const GLcharARB** strings, const GLint* length) const
[more]void glCompileShader(GLhandleARB shaderObj) const
[more]void glBindAttribLocation(GLhandleARB programObj, GLuint index, const GLcharARB* name) const
[more]void glLinkProgram(GLhandleARB programObj) const
[more]void glUseProgramObject(GLhandleARB programObj) const
[more]void glGetInfoLog(GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB* infoLog) const
[more]void glGetAttachedObjects(GLhandleARB containerObj, GLsizei maxCount, GLsizei* count, GLhandleARB* obj) const
[more]void glGetShaderSource(GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB* source) const
[more]void glUniform1f(GLint location, GLfloat v0) const
[more]void glUniform2f(GLint location, GLfloat v0, GLfloat v1) const
[more]void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) const
[more]void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) const
[more]void glUniform1i(GLint location, GLint v0) const
[more]void glUniform2i(GLint location, GLint v0, GLint v1) const
[more]void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) const
[more]void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) const
[more]void glUniform1fv(GLint location, GLsizei count, const GLfloat* value) const
[more]void glUniform2fv(GLint location, GLsizei count, const GLfloat* value) const
[more]void glUniform3fv(GLint location, GLsizei count, const GLfloat* value) const
[more]void glUniform4fv(GLint location, GLsizei count, const GLfloat* value) const
[more]void glUniform1iv(GLint location, GLsizei count, const GLint* value) const
[more]void glUniform2iv(GLint location, GLsizei count, const GLint* value) const
[more]void glUniform3iv(GLint location, GLsizei count, const GLint* value) const
[more]void glUniform4iv(GLint location, GLsizei count, const GLint* value) const
[more]void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) const
[more]void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) const
[more]void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) const
[more]GLint glGetUniformLocation(GLhandleARB programObject, const GLcharARB* name) const
[more]GLint glGetAttribLocation(GLhandleARB programObj, const GLcharARB* name) const
[more]void glGetActiveUniform(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLint* type, GLcharARB* name) const
[more]void glGetActiveAttribs(GLhandleARB programObj, GLint* count, const GLint** size, const GLenum** type, const GLcharARB* const** attributes) const
[more]void glGetUniformfv(GLhandleARB programObj, GLint location, GLfloat* params) const
[more]void glGetUniformiv(GLhandleARB programObj, GLint location, GLint* params) const
[more]void glGetObjectParameterfv(GLhandleARB obj, GLenum pname, GLfloat* params) const
[more]void glGetObjectParameteriv(GLhandleARB obj, GLenum pname, GLint* params) const
[more]GLhandleARB glGetHandle(GLenum pname) const

Protected Fields

[more]bool _isShaderObjectsSupported
[more]bool _isVertexShaderSupported
[more]bool _isFragmentShaderSupported
[more]bool _isLanguage100Supported
[more]float _languageVersion
[more]void* _glCreateShaderObject
[more]void* _glCreateProgramObject
[more]void* _glDeleteObject
[more]void* _glAttachObject
[more]void* _glDetachObject
[more]void* _glShaderSource
[more]void* _glCompileShader
[more]void* _glBindAttribLocation
[more]void* _glLinkProgram
[more]void* _glUseProgramObject
[more]void* _glGetInfoLog
[more]void* _glGetAttachedObjects
[more]void* _glGetShaderSource
[more]void* _glUniform1f
[more]void* _glUniform2f
[more]void* _glUniform3f
[more]void* _glUniform4f
[more]void* _glUniform1i
[more]void* _glUniform2i
[more]void* _glUniform3i
[more]void* _glUniform4i
[more]void* _glUniform1fv
[more]void* _glUniform2fv
[more]void* _glUniform3fv
[more]void* _glUniform4fv
[more]void* _glUniform1iv
[more]void* _glUniform2iv
[more]void* _glUniform3iv
[more]void* _glUniform4iv
[more]void* _glUniformMatrix2fv
[more]void* _glUniformMatrix3fv
[more]void* _glUniformMatrix4fv
[more]void* _glGetUniformLocation
[more]void* _glGetAttribLocation
[more]void* _glGetActiveUniform
[more]void* _glGetActiveAttribs
[more]void* _glGetUniformfv
[more]void* _glGetUniformiv
[more]void* _glGetObjectParameterfv
[more]void* _glGetObjectParameteriv
[more]void* _glGetHandle

Protected Methods

[more] ~Extensions()


Documentation

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

o Extensions(const Extensions& rhs)

ovoid lowestCommonDenominator(const Extensions& rhs)

ovoid setupGLExtensions()

obool isGlslSupported() const
are all the extensions required for GLSL supported?

ovoid setShaderObjectsSupported(bool flag)

obool isShaderObjectsSupported() const

ovoid setVertexShaderSupported(bool flag)

obool isVertexShaderSupported() const

ovoid setFragmentShaderSupported(bool flag)

obool isFragmentShaderSupported() const

ovoid setLanguage100Supported(bool flag)

obool isLanguage100Supported() const

ofloat getLanguageVersion() const

ostatic Extensions* Get(unsigned int contextID, bool createIfNotInitalized)
Function to call to get the extension of a specified context. If the Exentsion object for that context has not yet been created then and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object only be created with the graphics context associated with ContextID..

ostatic void Set(unsigned int contextID, Extensions* extensions)
allows users to override the extensions across graphics contexts. typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions.

oGLhandleARB glCreateShaderObject(GLenum shaderType) const

oGLhandleARB glCreateProgramObject() const

ovoid glDeleteObject(GLhandleARB obj) const

ovoid glAttachObject(GLhandleARB containerObj, GLhandleARB obj) const

ovoid glDetachObject(GLhandleARB containerObj, GLhandleARB attachedObj) const

ovoid glShaderSource(GLhandleARB shaderObj, GLsizei count, const GLcharARB** strings, const GLint* length) const

ovoid glCompileShader(GLhandleARB shaderObj) const

ovoid glBindAttribLocation(GLhandleARB programObj, GLuint index, const GLcharARB* name) const

ovoid glLinkProgram(GLhandleARB programObj) const

ovoid glUseProgramObject(GLhandleARB programObj) const

ovoid glGetInfoLog(GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB* infoLog) const

ovoid glGetAttachedObjects(GLhandleARB containerObj, GLsizei maxCount, GLsizei* count, GLhandleARB* obj) const

ovoid glGetShaderSource(GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB* source) const

ovoid glUniform1f(GLint location, GLfloat v0) const

ovoid glUniform2f(GLint location, GLfloat v0, GLfloat v1) const

ovoid glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) const

ovoid glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) const

ovoid glUniform1i(GLint location, GLint v0) const

ovoid glUniform2i(GLint location, GLint v0, GLint v1) const

ovoid glUniform3i(GLint location, GLint v0, GLint v1, GLint v2) const

ovoid glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) const

ovoid glUniform1fv(GLint location, GLsizei count, const GLfloat* value) const

ovoid glUniform2fv(GLint location, GLsizei count, const GLfloat* value) const

ovoid glUniform3fv(GLint location, GLsizei count, const GLfloat* value) const

ovoid glUniform4fv(GLint location, GLsizei count, const GLfloat* value) const

ovoid glUniform1iv(GLint location, GLsizei count, const GLint* value) const

ovoid glUniform2iv(GLint location, GLsizei count, const GLint* value) const

ovoid glUniform3iv(GLint location, GLsizei count, const GLint* value) const

ovoid glUniform4iv(GLint location, GLsizei count, const GLint* value) const

ovoid glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) const

ovoid glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) const

ovoid glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) const

oGLint glGetUniformLocation(GLhandleARB programObject, const GLcharARB* name) const

oGLint glGetAttribLocation(GLhandleARB programObj, const GLcharARB* name) const

ovoid glGetActiveUniform(GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLint* type, GLcharARB* name) const

ovoid glGetActiveAttribs(GLhandleARB programObj, GLint* count, const GLint** size, const GLenum** type, const GLcharARB* const** attributes) const

ovoid glGetUniformfv(GLhandleARB programObj, GLint location, GLfloat* params) const

ovoid glGetUniformiv(GLhandleARB programObj, GLint location, GLint* params) const

ovoid glGetObjectParameterfv(GLhandleARB obj, GLenum pname, GLfloat* params) const

ovoid glGetObjectParameteriv(GLhandleARB obj, GLenum pname, GLint* params) const

oGLhandleARB glGetHandle(GLenum pname) const

o ~Extensions()

obool _isShaderObjectsSupported

obool _isVertexShaderSupported

obool _isFragmentShaderSupported

obool _isLanguage100Supported

ofloat _languageVersion

ovoid* _glCreateShaderObject

ovoid* _glCreateProgramObject

ovoid* _glDeleteObject

ovoid* _glAttachObject

ovoid* _glDetachObject

ovoid* _glShaderSource

ovoid* _glCompileShader

ovoid* _glBindAttribLocation

ovoid* _glLinkProgram

ovoid* _glUseProgramObject

ovoid* _glGetInfoLog

ovoid* _glGetAttachedObjects

ovoid* _glGetShaderSource

ovoid* _glUniform1f

ovoid* _glUniform2f

ovoid* _glUniform3f

ovoid* _glUniform4f

ovoid* _glUniform1i

ovoid* _glUniform2i

ovoid* _glUniform3i

ovoid* _glUniform4i

ovoid* _glUniform1fv

ovoid* _glUniform2fv

ovoid* _glUniform3fv

ovoid* _glUniform4fv

ovoid* _glUniform1iv

ovoid* _glUniform2iv

ovoid* _glUniform3iv

ovoid* _glUniform4iv

ovoid* _glUniformMatrix2fv

ovoid* _glUniformMatrix3fv

ovoid* _glUniformMatrix4fv

ovoid* _glGetUniformLocation

ovoid* _glGetAttribLocation

ovoid* _glGetActiveUniform

ovoid* _glGetActiveAttribs

ovoid* _glGetUniformfv

ovoid* _glGetUniformiv

ovoid* _glGetObjectParameterfv

ovoid* _glGetObjectParameteriv

ovoid* _glGetHandle


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.