Mercurial > touhou
diff pytouhou/ui/opengl/renderer.pxd @ 518:75ae628522c9
Use shorts instead of ints for vertex position, reducing the size of a vertex to 20 bytes from 24.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 07 Dec 2013 14:15:43 +0100 |
parents | b3193b43a86c |
children | c0b3f8709f74 |
line wrap: on
line diff
--- a/pytouhou/ui/opengl/renderer.pxd +++ b/pytouhou/ui/opengl/renderer.pxd @@ -3,13 +3,13 @@ from pytouhou.lib.opengl cimport GLuint from .texture cimport TextureManager, FontManager cdef struct Vertex: - int x, y, z + short x, y, z, padding float u, v unsigned char r, g, b, a cdef struct PassthroughVertex: - int x, y + short x, y float u, v