OpenGL

This object is passed around to other OpenGL wrapper objects to ensure library loading. Create one to use OpenGL.

Constructors

this
this(Logger logger)

Load OpenGL library, redirect debug output to our logger. You can pass a null logger if you don't want logging.

Members

Enums

Vendor
enum Vendor
Undocumented in source.

Functions

debugCheck
void debugCheck()

Check for pending OpenGL errors, log a message if there is. Only for debug purpose since this check will be disabled in a release build.

getExtensions
string[] getExtensions()
getGLSLVersionString
const(char)[] getGLSLVersionString()
getLimits
void getLimits(bool isReload)
Undocumented in source. Be warned that the author may not have intended to support it.
getMajorVersion
int getMajorVersion()
getMinorVersion
int getMinorVersion()
getRendererString
const(char)[] getRendererString()
getString
const(char)[] getString(GLenum name)
getString
const(char)[] getString(GLenum name, GLuint index)
getVendor
Vendor getVendor()

Tries to detect the driver maker.

getVendorString
const(char)[] getVendorString()
getVersionString
const(char)[] getVersionString()
redirectDebugOutput
void redirectDebugOutput()

Redirects OpenGL debug output to the Logger. You still has to use glDebugMessageControl to set which messages are emitted. For example, to enable all messages, use: glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, null, GL_TRUE);

runtimeCheck
void runtimeCheck()

Checks pending OpenGL errors.

runtimeCheckNothrow
bool runtimeCheckNothrow()

Checks pending OpenGL errors.

supportsExtension
bool supportsExtension(string extension)

Static functions

getFloat
float getFloat(GLenum pname)
getInteger
int getInteger(GLenum pname)

Calls glGetIntegerv and gives back the requested integer.

Variables

_logger
Logger _logger;
Undocumented in source.

Meta