Wireframes! Player now has a name tag.

This commit is contained in:
2018-03-23 13:51:55 -05:00
parent 0b0d307d2a
commit 021805cd96
3 changed files with 87 additions and 2 deletions

View File

@@ -72,7 +72,13 @@ class IMICFPS
glColorPointer(3, GL_FLOAT, 0, o.flattened_materials)
glNormalPointer(GL_FLOAT, 0, o.flattened_normals)
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
if $debug
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
else
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
end
glDisableClientState(GL_VERTEX_ARRAY)
glDisableClientState(GL_COLOR_ARRAY)