Renamed lighting shader to default, shoehorned in glsl 3.30 support for Intel on Linux, removed duplicate handleGlError methods, added OpenGL and GLU to Object namespace, removed redundant includes for OpenGL and GLU, VBO and VAO now render (all be it incorrectly)

This commit is contained in:
2019-08-11 14:53:15 -05:00
parent 73478b7e37
commit f11b091fe0
17 changed files with 142 additions and 89 deletions

View File

@@ -1,8 +1,5 @@
class IMICFPS
class BoundingBoxRenderer
include OpenGL
include GLU
attr_reader :bounding_boxes, :vertex_count
def initialize(game_state:)
@game_state = game_state
@@ -11,14 +8,6 @@ class IMICFPS
@vertex_count = 0
end
def handleGlError
e = glGetError()
if e != GL_NO_ERROR
$stderr.puts "OpenGL error in: #{gluErrorString(e)} (#{e})\n"
exit
end
end
def create_bounding_box(object, box, color = nil, mesh_object_id)
color ||= object.debug_color