tida.vertgen

The module for generating vertices for drawing open graphics by the library.

By means of 's, you can generate its vertices for a convenient representation and transfer such vertices to the shader to draw the corresponding shapes.

Members

Classes

VertexInfo
class VertexInfo(T)

A storage object for the identifiers of the buffers stored in memory.

Functions

generateBuffer
Vector!T[] generateBuffer(Shape!T shape, Vector!T textureSize)
generateVertex
VertexInfo!T generateVertex(Shape!T shape, Vector!T textSize)
generateVertexColor
VertexInfo!T generateVertexColor(Shape!T shape, Color!ubyte[] colors)

Generates the vertices of shapes to be rendered using hardware acceleration.

Templates

glType
template glType(T)

a template for translating a type into a type identifier that is understandable for the OpenGL interface.

Meta

Authors

License