CanvasBackend

Undocumented in source.

Members

Functions

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.
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

colorBlend
BlendingFunction colorBlend()

Gets the color channel blending function

colorWriteMask
void colorWriteMask(bool r, bool g, bool b, bool a)
Undocumented in source.
dispose
void dispose()

Releases all resources created under this backend

draw
void draw(DrawMode mode, Shader shader, Mesh mesh, size_t startVertex, size_t numVertices)
Undocumented in source.
framebuffer
Framebuffer framebuffer(IVec2 size)
Undocumented in source.
mesh
Mesh mesh(VertexFormat format, MeshUsage usage)
Undocumented in source.
renderTarget
void renderTarget(Framebuffer framebuffer)

Sets the current rendering target

renderTarget
Framebuffer renderTarget()

Gets the current rendering target, or null

shader
Shader shader(ShaderSource[] sources)

Creates a new shader from the given sources

stencil
void stencil(Stencil value)
Undocumented in source.
stencilSeparate
void stencilSeparate(Stencil front, Stencil back)
Undocumented in source.
texture
Texture texture(IVec2 size, const(void)[] data)
Undocumented in source.
viewport
void viewport(IVec2 location, IVec2 size)

Sets the viewport rectangle

Meta