Created
June 21, 2014 16:02
-
-
Save tobspr/93e31b274acb6ac9be6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
geomFormat = GeomVertexFormat.getV3t2() | |
vertexData = GeomVertexData("vertices", geomFormat, Geom.UHStatic) | |
vertexWriter = GeomVertexWriter(vertexData, "vertex") | |
texcoordWriter = GeomVertexWriter(vertexData, "texcoord") | |
triangle = GeomTriangles(Geom.UHStatic) | |
vertexWriter.reserveNumRows(len(text) * 6) | |
texcoordWriter.reserveNumRows(len(text) * 6) | |
triangle.reserveNumVertices(len(text) * 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment