dlangui.graphics.glsupport

This module contains OpenGL access layer.

To enable OpenGL support, build with version(USE_OPENGL);

Synopsis:

import dlangui.graphics.glsupport;

Public Imports

dlangui.core.config
public import dlangui.core.config;
Undocumented in source.
dlangui.core.math3d
public import dlangui.core.math3d;
Undocumented in source.
EGL.egl
public import EGL.egl;
Undocumented in source.
GLES3.gl3
public import GLES3.gl3;
Undocumented in source.
derelict.opengl3.types
public import derelict.opengl3.types;
Undocumented in source.
derelict.opengl3.gl3
public import derelict.opengl3.gl3;
Undocumented in source.
derelict.opengl3.gl
public import derelict.opengl3.gl;
Undocumented in source.

Members

Aliases

EBO
alias EBO = GLObject!(GLObjectTypes.Buffer, GL_ELEMENT_ARRAY_BUFFER)
Undocumented in source.
EGLint (from EGL.eglplatform)
alias EGLint = int via public import EGL.eglplatform : EGLint;
Undocumented in source.
FBO
alias FBO = GLObject!(GLObjectTypes.Framebuffer, GL_FRAMEBUFFER)
Undocumented in source.
Tex2D
alias Tex2D = GLObject!(GLObjectTypes.Texture, GL_TEXTURE_2D)
Undocumented in source.
VAO
alias VAO = GLObject!(GLObjectTypes.VertexArray)
Undocumented in source.
VBO
alias VBO = GLObject!(GLObjectTypes.Buffer, GL_ARRAY_BUFFER)
Undocumented in source.

Classes

DummyVertexBuffer
class DummyVertexBuffer
Undocumented in source.
GLObject
class GLObject(GLObjectTypes type, GLuint target = 0)

RAII OpenGL object template. * Note: on construction it binds itself to the target, and it binds 0 to target on destruction. * All methods (except ctor, dtor, bind(), unbind() and setup()) does not perform binding.

GLProgram
class GLProgram
Undocumented in source.
GLSupport
class GLSupport

OpenGL support helper

GLVertexBuffer
class GLVertexBuffer
Undocumented in source.
SolidFillProgram
class SolidFillProgram
Undocumented in source.
TextureProgram
class TextureProgram
Undocumented in source.

Enums

GLObjectTypes
enum GLObjectTypes
Undocumented in source.

Functions

assertNoError
void assertNoError(string context, string functionName, int line)
Undocumented in source. Be warned that the author may not have intended to support it.
checkError
bool checkError(string context, string functionName, int line)
Undocumented in source. Be warned that the author may not have intended to support it.
gl3MissingSymFunc
derelict.util.exception.ShouldThrow gl3MissingSymFunc(string symName)
Undocumented in source. Be warned that the author may not have intended to support it.
glColor4f (from GLES.gl)
void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glColorPointer (from GLES.gl)
void glColorPointer(GLint size, GLenum type, GLsizei stride, const(GLvoid)* pointer) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glColorPointer (from GLES.gl)
void glColorPointer(GLint size, GLenum type, GLsizei stride, const(GLvoid)* pointer) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glDisableClientState (from GLES.gl)
void glDisableClientState(GLenum array) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glEnableClientState (from GLES.gl)
void glEnableClientState(GLenum array) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glLightfv (from GLES.gl)
void glLightfv(GLenum light, GLenum pname, const(GLfloat)* params) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glLoadIdentity (from GLES.gl)
void glLoadIdentity() via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glLoadMatrixf (from GLES.gl)
void glLoadMatrixf(const(GLfloat)* m) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glMatrixMode (from GLES.gl)
void glMatrixMode(GLenum mode) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glTexCoordPointer (from GLES.gl)
void glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const(GLvoid)* pointer) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glVertexPointer (from GLES.gl)
void glVertexPointer(GLint size, GLenum type, GLsizei stride, const(GLvoid)* pointer) via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
glerrorToString
string glerrorToString(GLenum err)
Undocumented in source. Be warned that the author may not have intended to support it.
initGLSupport
bool initGLSupport(bool legacy)

initialize OpenGL support helper (call when current OpenGL context is initialized)

primitiveTypeToGL
GLenum primitiveTypeToGL(PrimitiveType type)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

GL_ALPHA_TEST (from GLES.gl)
enum GL_ALPHA_TEST; via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
GL_COLOR_ARRAY (from GLES.gl)
enum GL_COLOR_ARRAY; via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
GL_MODELVIEW (from GLES.gl)
enum GL_MODELVIEW; via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
GL_PROJECTION (from GLES.gl)
enum GL_PROJECTION; via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
GL_TEXTURE_COORD_ARRAY (from GLES.gl)
enum GL_TEXTURE_COORD_ARRAY; via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
GL_VERTEX_ARRAY (from GLES.gl)
enum GL_VERTEX_ARRAY; via public import GLES.gl : glEnableClientState, glLightfv, glColor4f, GL_ALPHA_TEST, GL_VERTEX_ARRAY, GL_COLOR_ARRAY, glVertexPointer, glColorPointer, glDisableClientState, GL_TEXTURE_COORD_ARRAY, glTexCoordPointer, glColorPointer, glMatrixMode, glLoadMatrixf, glLoadIdentity, GL_PROJECTION, GL_MODELVIEW;
Undocumented in source.
SUPPORT_LEGACY_OPENGL
enum SUPPORT_LEGACY_OPENGL;
Undocumented in source.
SUPPORT_LEGACY_OPENGL
enum SUPPORT_LEGACY_OPENGL;
Undocumented in source.

Properties

glSupport
GLSupport glSupport [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

glNoContext
bool glNoContext;
Undocumented in source.

Structs

Color
struct Color
Undocumented in source.

Templates

assertgl
template assertgl(alias func)

Convenient wrapper around glGetError() Using: checkgl!glFunction(funcParams); TODO use one of the DEBUG extensions

checkgl
template checkgl(alias func)

Convenient wrapper around glGetError() Using: checkgl!glFunction(funcParams); TODO use one of the DEBUG extensions

Meta

License

Boost License 1.0

Authors

Vadim Lopatin, coolreader.org@gmail.com