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

@@ -6,7 +6,7 @@ class IMICFPS
class Wavefront
class Model
include OpenGL
# include GLU
include CommonMethods
include Parser
@@ -50,7 +50,7 @@ class IMICFPS
@objects.each_with_index do |o, i|
puts " Model::Object Name: #{o.name}, Vertices: #{o.vertices.size}" if $debug
end
$window.number_of_vertices+=@vertex_count
window.number_of_vertices+=@vertex_count
@model_has_texture = false
@materials.each do |key, material|
if material.texture_id