Class QuadIndices
java.lang.Object
lol.trq.helios.gl.QuadIndices
Index data that draws quads of four vertices as two triangles each, 0-1-2 and 2-3-0.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBuffercreate(int quads, int type) Builds the indices for a number of quads.static inttype(int quads) Returns the smallest index type that can address a number of quads.
-
Method Details
-
type
public static int type(int quads) Returns the smallest index type that can address a number of quads.- Parameters:
quads- the quad count- Returns:
GlBackend.UNSIGNED_SHORTorGlBackend.UNSIGNED_INT
-
create
Builds the indices for a number of quads.- Parameters:
quads- the quad counttype-GlBackend.UNSIGNED_SHORTorGlBackend.UNSIGNED_INT- Returns:
- a flipped direct buffer of
quads * 6indices
-