GLSupport

OpenGL support helper

Constructors

this
this(bool legacy)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

beforeRenderGUI
void beforeRenderGUI()
Undocumented in source. Be warned that the author may not have intended to support it.
bindFramebuffer
bool bindFramebuffer(FBO fbo)
Undocumented in source. Be warned that the author may not have intended to support it.
clearDepthBuffer
void clearDepthBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
createFramebuffer
bool createFramebuffer(Tex2D texture, FBO fbo, int dx, int dy)

returns texture for buffer, null if failed

deleteFramebuffer
void deleteFramebuffer(FBO fbo)
Undocumented in source. Be warned that the author may not have intended to support it.
flushGL
void flushGL()

call glFlush

generateMipmap
bool generateMipmap(int dx, int dy, ubyte* pixels, int level, ubyte[] dst)
Undocumented in source. Be warned that the author may not have intended to support it.
setOrthoProjection
void setOrthoProjection(Rect windowRect, Rect view)
Undocumented in source. Be warned that the author may not have intended to support it.
setPerspectiveProjection
void setPerspectiveProjection(Rect windowRect, Rect view, float fieldOfView, float nearPlane, float farPlane)
Undocumented in source. Be warned that the author may not have intended to support it.
setTextureImage
bool setTextureImage(Tex2D texture, int dx, int dy, ubyte* pixels, int mipmapLevels)
Undocumented in source. Be warned that the author may not have intended to support it.
setTextureImageAlpha
bool setTextureImageAlpha(Tex2D texture, int dx, int dy, ubyte* pixels)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

legacyMode
bool legacyMode [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
projectionMatrix
mat4 projectionMatrix [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
queue
queue [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
valid
bool valid [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta