Replaced usage of with CommonMethods.window (which uses ), refactored InputMapper to match actions to keys and visa-versa, removed categories from InputMapper, moved input mappings from Camera and Player into InputMapper (for now.)

This commit is contained in:
2019-02-22 14:55:06 -06:00
parent 8b65973f6f
commit 6191699d8b
11 changed files with 178 additions and 121 deletions

View File

@@ -1,5 +1,6 @@
class IMICFPS
class OpenGLRenderer
include CommonMethods
include OpenGL
include GLU
@@ -76,7 +77,7 @@ class IMICFPS
glLineWidth(3)
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
$window.number_of_vertices+=model.vertices.size
window.number_of_vertices+=model.vertices.size
glLineWidth(1)
glPolygonOffset(0, 0)
@@ -84,10 +85,10 @@ class IMICFPS
glEnable(GL_LIGHTING)
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
$window.number_of_vertices+=model.vertices.size
window.number_of_vertices+=model.vertices.size
else
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
$window.number_of_vertices+=model.vertices.size
window.number_of_vertices+=model.vertices.size
end
# glBindBuffer(GL_ARRAY_BUFFER, 0)