Batch

Undocumented in source.

Members

Functions

put3dGrid
void put3dGrid(Vector!(T1, 3) pos, ivec3 count, Vector!(T2, 3) offset, Color4ub color)
Undocumented in source. Be warned that the author may not have intended to support it.
putCube
void putCube(Vector!(T1, 3) pos, Vector!(T2, 3) size, Color4ub color, bool fill)
Undocumented in source. Be warned that the author may not have intended to support it.
putCubeFace
void putCubeFace(Vector!(T1, 3) cubePos, Vector!(T2, 3) size, CubeSide side, Color4ub color, bool fill)
Undocumented in source. Be warned that the author may not have intended to support it.
putLine
void putLine(Vector!(T1, 3) start, Vector!(T2, 3) end, Color4ub color)
Undocumented in source. Be warned that the author may not have intended to support it.
putLine
void putLine(Vector!(T1, 3) start, Vector!(T2, 3) end, Color4ub color1, Color4ub color2)
Undocumented in source. Be warned that the author may not have intended to support it.
putLineVolumetric
void putLineVolumetric(Vector!(T1, 3) start, Vector!(T2, 3) end, Color4ub color)
Undocumented in source. Be warned that the author may not have intended to support it.
putPoint
void putPoint(Vector!(T, 3) pos, Color4ub color)
Undocumented in source. Be warned that the author may not have intended to support it.
putSolidMesh
void putSolidMesh(VertRange vertices, vec3 offset)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

cube
Batch cube(Vector!(T, 3) halfSize, Color4ub color, bool fill)

Creates a batch with a centered cube with 3 radiuses (not dimensions).

cube
Batch cube(Vector!(T, 3) halfSize, Color4ub color, bool fill, Vector!(T, 3) offset)

Creates a batch with a centered cube with 3 radiuses (not dimensions) and offset.

cube32
Batch cube32(Vector!(T, 3) halfSize, Color4ub color, bool fill)

Creates a batch with a centered cube with 3 radiuses (not dimensions) where all dimensions are 1/32th (1 pixel in a 32x32 texture).

cube32
Batch cube32(Vector!(T, 3) halfSize, Color4ub color, bool fill, Vector!(T, 3) offset)

Creates a batch with a centered cube with 3 radiuses (not dimensions) and offset where all dimensions are 1/32th (1 pixel in a 32x32 texture).

Variables

lineBuffer
Buffer!ColoredVertex lineBuffer;
Undocumented in source.
pointBuffer
Buffer!ColoredVertex pointBuffer;
Undocumented in source.
triBuffer
Buffer!ColoredVertex triBuffer;
Undocumented in source.

Meta