Crazy Eddie's GUI System
0.8.7
|
Provides information about the type of OpenGL used by an OpenGL context (desktop OpenGL or OpenGL ES), the OpenGL version, and the OpenGL extensions. More...
Public Types | |
enum | Type { TYPE_NONE, TYPE_DESKTOP, TYPE_ES } |
Type of the OpenGL (desktop or ES) context. More... | |
Public Member Functions | |
void | init () |
Must be called before any other method. More... | |
Type | type () const |
Type of the OpenGL (desktop or ES) context. | |
bool | isUsingDesktopOpengl () const |
Returns true if using Desktop OpenGL. | |
bool | isUsingOpenglEs () const |
Returns true if using OpenGL ES. | |
GLint | verMajor () const |
Returns OpenGL (desktop or ES) major version. Only supports Epoxy! Otherwise returns -1;. | |
GLint | verMinor () const |
Returns OpenGL (desktop or ES) minor version. Only supports Epoxy! Otherwise returns -1;. | |
bool | verAtLeast (GLint major, GLint minor) |
Returns true if the OpenGL (desktop or ES) version is at least "major.minor". Only supports Epoxy! Otherwise returns false. | |
bool | isS3tcSupported () const |
Returns true if "S3TC" texture compression is supported. More... | |
bool | isNpotTextureSupported () const |
Returns true if NPOT (non-power-of-two) textures are supported. | |
bool | isReadBufferSupported () const |
Returns true if "glReadBuffer" is supported. | |
bool | isPolygonModeSupported () const |
Returns true if "glPolygonMode" is supported. | |
bool | isVaoSupported () const |
Returns true if VAO-s (Vertex Array Objects) are supported. | |
bool | isSeperateReadAndDrawFramebufferSupported () const |
Returns true if working with the read/draw framebuffers seperately is supported. | |
bool | isSizedInternalFormatSupported () const |
void | verForce (GLint verMajor_, GLint verMinor_) |
Static Public Member Functions | |
static OpenGLInfo & | getSingleton () |
Provides information about the type of OpenGL used by an OpenGL context (desktop OpenGL or OpenGL ES), the OpenGL version, and the OpenGL extensions.
void CEGUI::OpenGLInfo::init | ( | ) |
Must be called before any other method.
Note that the information returned by other methods is with respect to the OpenGL (desktop or ES) context that was current when this method was called.
|
inline |
Returns true if "S3TC" texture compression is supported.
Note: Works only with Epoxy OR with desktop OpenGL >= 3.0. Otherwise returns false.