OpenGL context specific settings.
More...
#include <opengl_context_description.h>
OpenGL context specific settings.
uicore::OpenGLContextDescription::OpenGLContextDescription |
( |
| ) |
|
Constructs a window description with default values.
virtual uicore::OpenGLContextDescription::~OpenGLContextDescription |
( |
| ) |
|
|
virtual |
bool uicore::OpenGLContextDescription::allow_lower_versions |
( |
| ) |
const |
Returns true if allowed lower versions than the selected version.
bool uicore::OpenGLContextDescription::compatibility_profile |
( |
| ) |
const |
Returns true if the compatibility profile flag is set.
bool uicore::OpenGLContextDescription::core_profile |
( |
| ) |
const |
Returns true if the core profile flag is set.
bool uicore::OpenGLContextDescription::debug |
( |
| ) |
const |
Returns true if the debug flag is set.
bool uicore::OpenGLContextDescription::forward_compatible |
( |
| ) |
const |
Returns true if the forward compatible flag is set.
int uicore::OpenGLContextDescription::layer_plane |
( |
| ) |
const |
Returns the layer plane value.
void uicore::OpenGLContextDescription::set_compatibility_profile |
( |
bool |
enable | ) |
|
Sets the compatibility profile flag.
If than a context implementing the compatibility profile is returned.
- Parameters
-
enable | = true - Enable this option (Default is false) |
void uicore::OpenGLContextDescription::set_core_profile |
( |
bool |
enable | ) |
|
Sets the core profile flag.
If true, then a context implementing the core profile of OpenGL is returned
- Parameters
-
enable | = true - Enable this option (Default is true) |
void uicore::OpenGLContextDescription::set_debug |
( |
bool |
enable | ) |
|
Sets the debug flag.
Debug contexts are intended for use during application development, and provide additional runtime checking, validation, and logging functionality while possibly incurring performance penalties
- Parameters
-
enable | = true - Enable this option (Default is false) |
void uicore::OpenGLContextDescription::set_forward_compatible |
( |
bool |
enable | ) |
|
Sets the forward compatible flag.
Forward-compatible contexts must not support functionality marked as deprecated by that version of the API, while a non-forward-compatible context must support all functionality in that version, deprecated or not.
- Parameters
-
enable | = true - Enable this option (Default is false) |
void uicore::OpenGLContextDescription::set_layer_plane |
( |
int |
value | ) |
|
Sets the layer plane value.
Specifies the layer plane that the rendering context is bound to
- Parameters
-
value | = The layer plane. (Default is 0 - the main plane) |
void uicore::OpenGLContextDescription::set_version |
( |
int |
major, |
|
|
int |
minor, |
|
|
bool |
allow_lower_versions |
|
) |
| |
Select the OpenGL version number.
Defaults to OpenGL 3.2 with lower versions (will drop to Legacy OpenGL without shader support if lower)
- Parameters
-
major | = OpenGL major number (e.g. 4) |
minor | = OpenGL minor number (e.g. 1) |
allow_lower_versions | = Allow lower versions of the specified opengl |
int uicore::OpenGLContextDescription::version_major |
( |
| ) |
const |
Returns selected major version number.
int uicore::OpenGLContextDescription::version_minor |
( |
| ) |
const |
Returns selected minor version number.
The documentation for this class was generated from the following file: