dsdl2.gl

Members

Classes

GLContext
class GLContext

D class that wraps SDL_GLContext enclosing an OpenGL context used for SDL

Enums

GLAttribute
enum GLAttribute

D enum that wraps SDL_GLattr defining OpenGL initialization attributes

GLProfile
enum GLProfile

D enum that wraps SDL_GLprofile defining OpenGL profiles

GLSwapInterval
enum GLSwapInterval

D enum that defines swap intervals for OpenGL

Functions

getCurrentGLContext
GLContext getCurrentGLContext()

Wraps SDL_GL_GetCurrentContext which gets the current OpenGL context used by SDL

getCurrentGLWindow
Window getCurrentGLWindow()

Wraps SDL_GL_GetCurrentWindow which gets the current target window for OpenGL

getGLAttribute
uint getGLAttribute(GLAttribute attribute)

Wraps SDL_GL_GetAttribute which gets previously set OpenGL attributes for initialization

getGLProcAddress
void* getGLProcAddress(string proc)

Wraps SDL_GL_GetProcAddress which gets the pointer to a certain OpenGL function

getGLSwapInterval
GLSwapInterval getGLSwapInterval()

Wraps SDL_GL_GetSwapInterval which gets the currently-used swap interval method for OpenGL

isGLExtensionSupported
bool isGLExtensionSupported(string extension)

Wraps SDL_GL_ExtensionSupported which checks whether an OpenGL extension is supported

loadGL
void loadGL(string path)

Wraps SDL_GL_LoadLibrary which loads OpenGL from the given path of the library

resetGLAttributes
void resetGLAttributes()

Wraps SDL_GL_ResetAttributes (from SDL 2.0.2) which resets all OpenGL attributes previously set to default

setGLAttribute
void setGLAttribute(GLAttribute attribute, uint value)

Wraps SDL_GL_SetAttribute which sets OpenGL attributes for initialization

setGLSwapInterval
void setGLSwapInterval(GLSwapInterval interval)

Wraps SDL_GL_SetSwapInterval which gets the swap interval method for OpenGL

unloadGL
void unloadGL()

Wraps SDL_GL_UnloadLibrary which unloads the loaded OpenGL library from dsdl2.loadGL

Meta

Authors

Avaxar <avaxar@nekkl.org>