generateBuffer

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

  1. Vector!T[] generateBuffer(Shape!T shape, Vector!T textureSize)
    @safe nothrow pure
    Vector!T[]
    generateBuffer
    (
    T
    )
  2. VertexInfo!T generateVertex(Shape!T shape, Vector!T textSize)
  3. VertexInfo!T generateVertexColor(Shape!T shape, Color!ubyte[] colors)

Parameters

T

Type.

shape Shape!T

Shape information.

textureSize Vector!T

Texture size. If not specified, will not generate texture vertices for vertices.

Meta