IRenderer

An interface for rendering objects to a display or other storehouse of pixels.

interface IRenderer {}

Members

Functions

background
void background(Color!ubyte background)
Color!ubyte background()

The color to fill when clearing.

blendMode
void blendMode(BlendMode mode)

Set the coloring method. Those. with or without alpha blending.

blendOperation
void blendOperation(BlendFactor sfactor, BlendFactor dfactor)

Set factor blend

circle
void circle(Vecf position, float radius, Color!ubyte color, bool isFill)

Drawning a circle.

clear
void clear()

Cleans the surface by filling it with color.

currentModelMatrix
float[4][4] currentModelMatrix()
void currentModelMatrix(float[4][4] matrix)

Current model matrix.

currentShader
void currentShader(Shader!Program program)

The current shader for the next object rendering.

currentShader
Shader!Program currentShader()

The current shader for the next object rendering.

draw
void draw(IDrawable drawable, Vecf position)
drawEx
void drawEx(IDrawableEx drawable, Vecf position, float angle, Vecf center, Vecf size, ubyte alpha, Color!ubyte color)

Renders an object.

drawning
void drawning()

Outputs the buffer to the window.

getShader
Shader!Program getShader(string name)

Pulls a shader from memory, getting it by name. Returns a null pointer if no shader is found.

line
void line(Vecf[2] points, Color!ubyte color)

Line drawing.

point
void point(Vecf vec, Color!ubyte color)

Drawing a point.

polygon
void polygon(Vecf position, Vecf[] points, Color!ubyte color, bool isFill)

Drawing a polygon from an array of vertices.

rectangle
void rectangle(Vecf position, uint width, uint height, Color!ubyte color, bool isFill)

Drawing a rectangle.

resetModelMatrix
void resetModelMatrix()

Reset current model matrix.

resetShader
void resetShader()

Reset the shader to main.

reshape
void reshape()

Updates the rendering surface if, for example, the window is resized.

roundrect
void roundrect(Vecf position, uint width, uint height, float radius, Color!ubyte color, bool isFill)

Draws a rectangle with rounded edges. (Rendering is available only through hardware acceleration).

setShader
void setShader(string name, Shader!Program program)

Memorize the shader for future reference.

triangle
void triangle(Vecf[3] points, Color!ubyte color, bool isFill)

Drawing a triangle by its three vertices.

type
RenderType type()

Gives the type of render.

Properties

camera
Camera camera [@property setter]

Camera for rendering.

camera
Camera camera [@property getter]

Camera for rendering.

Meta