GLBackend

Handles opengl contexts and passing data to OpenGL such as shaders and vertices

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Postblit

Copying this object is disabled.

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

add
void add(in GLuint texture, in Vertex[] newVertices, in GLuint[] newIndices)

Add some vertices and indices to the backend

clear
void clear(in Color col)

Clear the screen and the vertex and index buffers

flip
void flip()

Flush the buffers and display the new screen

flush
void flush()

Draw the current vertices and indices and clear the buffers

setShader
void setShader(in string vertexShader, in string fragmentShader, in string transformAttributeName = "transform", in string positionAttributeName = "position", in string texPositionAttributeName = "tex_coord", in string colorAttributeName = "color", in string textureAttributeName = "tex", in string colorOutputName = "outColor")

Set the current shader and its attributes

Meta