Debug commands now affect game

This commit is contained in:
2019-08-07 17:58:30 -05:00
parent 3e6ff5bd4a
commit 3eb34d023e
10 changed files with 21 additions and 29 deletions

View File

@@ -70,7 +70,7 @@ class IMICFPS
# glBindBuffer(GL_ARRAY_BUFFER, model.vertices_buffer)
# glVertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, 0)
if $debug # This is kinda expensive
if $debug.get(:wireframe) # This is kinda expensive
glDisable(GL_LIGHTING)
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
glPolygonOffset(2, 0.5)