LLGL 0.05 Beta
Loading...
Searching...
No Matches
LLGL::RendererConfigurationOpenGL Struct Reference

OpenGL/OpenGLES profile descriptor structure. More...

#include <RendererConfiguration.h>

Public Attributes

OpenGLContextProfile contextProfile = OpenGLContextProfile::Auto
 Specifies the requested OpenGL context profile. By default OpenGLContextProfile::Auto.
int majorVersion = 0
 Specifies the requested OpenGL context major version. By default 0.
int minorVersion = 0
 Specifies the requested OpenGL context minor version. By default 0.
bool suppressFailedExtensions = false
 Specifies whether to suppress failures when loading OpenGL extensions. By default false.

Detailed Description

OpenGL/OpenGLES profile descriptor structure.

Note
On MacOS the only supported OpenGL profiles are compatibility profile (for lagecy OpenGL before 3.0), 3.2 core profile, or 4.1 core profile.

Member Data Documentation

◆ contextProfile

OpenGLContextProfile LLGL::RendererConfigurationOpenGL::contextProfile = OpenGLContextProfile::Auto

Specifies the requested OpenGL context profile. By default OpenGLContextProfile::Auto.

◆ majorVersion

int LLGL::RendererConfigurationOpenGL::majorVersion = 0

Specifies the requested OpenGL context major version. By default 0.

Remarks
If both majorVersion and minorVersion are 0, the highest OpenGL version that is available on the host system will be chosen.
This member is ignored if contextProfile is OpenGLContextProfile::CompatibilityProfile.

◆ minorVersion

int LLGL::RendererConfigurationOpenGL::minorVersion = 0

Specifies the requested OpenGL context minor version. By default 0.

Remarks
If both majorVersion and minorVersion are 0, the highest OpenGL version that is available on the host system will be chosen.
This member is ignored if contextProfile is OpenGLContextProfile::CompatibilityProfile.

◆ suppressFailedExtensions

bool LLGL::RendererConfigurationOpenGL::suppressFailedExtensions = false

Specifies whether to suppress failures when loading OpenGL extensions. By default false.

Remarks
If this is false, failed GL extensions will abort the current application and the respective extension and procedure name is printed to standard error output.

The documentation for this struct was generated from the following file: