OpenGLBackend

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

alphaBlend
BlendingFunction alphaBlend()
Undocumented in source. Be warned that the author may not have intended to support it.
blend
BlendingFunction blend()
Undocumented in source. Be warned that the author may not have intended to support it.
blend
void blend(BlendingFunction value)
Undocumented in source. Be warned that the author may not have intended to support it.
blend
void blend(BlendingFunction color, BlendingFunction alpha)
Undocumented in source. Be warned that the author may not have intended to support it.
clearColor
void clearColor(Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
clearStencil
void clearStencil(ubyte value)
Undocumented in source. Be warned that the author may not have intended to support it.
colorBlend
BlendingFunction colorBlend()
Undocumented in source. Be warned that the author may not have intended to support it.
colorWriteMask
void colorWriteMask(bool r, bool g, bool b, bool a)
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(DrawMode mode, Shader shader, Mesh mesh, size_t startVertex, size_t numVertices)
Undocumented in source. Be warned that the author may not have intended to support it.
framebuffer
Framebuffer framebuffer(IVec2 size)
Undocumented in source. Be warned that the author may not have intended to support it.
mesh
Mesh mesh(VertexFormat format, MeshUsage usage)
Undocumented in source. Be warned that the author may not have intended to support it.
renderTarget
void renderTarget(Framebuffer framebuffer)
Undocumented in source. Be warned that the author may not have intended to support it.
renderTarget
Framebuffer renderTarget()
Undocumented in source. Be warned that the author may not have intended to support it.
shader
Shader shader(ShaderSource[] sources)
Undocumented in source. Be warned that the author may not have intended to support it.
stencil
void stencil(Stencil value)
Undocumented in source. Be warned that the author may not have intended to support it.
stencilSeparate
void stencilSeparate(Stencil front, Stencil back)
Undocumented in source. Be warned that the author may not have intended to support it.
texture
Texture texture(IVec2 size, const(void)[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
viewport
void viewport(IVec2 location, IVec2 size)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From CanvasBackend

dispose
void dispose()

Releases all resources created under this backend

shader
Shader shader(ShaderSource[] sources)

Creates a new shader from the given sources

mesh
Mesh mesh(VertexFormat format, MeshUsage usage)
Undocumented in source.
framebuffer
Framebuffer framebuffer(IVec2 size)
Undocumented in source.
texture
Texture texture(IVec2 size, const(void)[] data)
Undocumented in source.
renderTarget
void renderTarget(Framebuffer framebuffer)

Sets the current rendering target

renderTarget
Framebuffer renderTarget()

Gets the current rendering target, or null

clearColor
void clearColor(Color color)

Clears the color buffer with the given color

clearStencil
void clearStencil(ubyte value)

Clears the stencil buffer with the given value

stencil
void stencil(Stencil value)
Undocumented in source.
stencilSeparate
void stencilSeparate(Stencil front, Stencil back)
Undocumented in source.
colorBlend
BlendingFunction colorBlend()

Gets the color channel blending function

alphaBlend
BlendingFunction alphaBlend()

Gets the alpha channel blending function

blend
BlendingFunction blend()

Same as colorBlend

blend
void blend(BlendingFunction value)
Undocumented in source.
blend
void blend(BlendingFunction color, BlendingFunction alpha)
Undocumented in source.
viewport
void viewport(IVec2 location, IVec2 size)

Sets the viewport rectangle

colorWriteMask
void colorWriteMask(bool r, bool g, bool b, bool a)
Undocumented in source.
draw
void draw(DrawMode mode, Shader shader, Mesh mesh, size_t startVertex, size_t numVertices)
Undocumented in source.

Meta