FastUIDraw
|
A ContextProperties provides an interface to query GL/GLES version and extensions. More...
#include <gl_context_properties.hpp>
Public Member Functions | |
ContextProperties (bool make_ready=false) | |
bool | has_extension (c_string ext) const |
bool | is_es (void) const |
int | major_version (void) const |
int | minor_version (void) const |
vecN< int, 2 > | version (void) const |
A ContextProperties provides an interface to query GL/GLES version and extensions.
Definition at line 40 of file gl_context_properties.hpp.
|
explicit |
Ctor.
make_ready | if true, query GL context at ctor (instead of lazily) to generate GL context information |
bool fastuidraw::gl::ContextProperties::has_extension | ( | c_string | ext | ) | const |
Returns true if the context supports the named extension.
bool fastuidraw::gl::ContextProperties::is_es | ( | void | ) | const |
Returns true if the context is OpenGL ES, returns value if the context is OpenGL.
|
inline |
Returns the GL major version, equivalent to
Definition at line 68 of file gl_context_properties.hpp.
|
inline |
Returns the GL minor version, equivalent to
Definition at line 80 of file gl_context_properties.hpp.
vecN<int, 2> fastuidraw::gl::ContextProperties::version | ( | void | ) | const |
Return the GL/GLES version of the GL context with the major version in [0] and the minor version in [1].