Added shader support, removed unused debugging puts statements and fixed Gosu Font.draw deprecation warning.

This commit is contained in:
2018-12-10 18:50:25 -06:00
parent 74b0a0ef6f
commit 4d8638d81c
13 changed files with 201 additions and 29 deletions

View File

@@ -77,13 +77,13 @@ class IMICFPS
glMatrixMode(GL_MODELVIEW) # The modelview matrix is where object information is stored.
glLoadIdentity
if $debug && @game_object
glBegin(GL_LINES)
glColor3f(1,0,0)
glVertex3f(@x, @y, @z)
glVertex3f(@game_object.x, @game_object.y, @game_object.z)
glEnd
end
# if $debug && @game_object
# glBegin(GL_LINES)
# glColor3f(1,0,0)
# glVertex3f(@x, @y, @z)
# glVertex3f(@game_object.x, @game_object.y, @game_object.z)
# glEnd
# end
end
def update

View File

@@ -19,8 +19,6 @@ class IMICFPS
@nearest_vertex_lookup[x_slot][y_slot] = [] unless @nearest_vertex_lookup[x_slot][y_slot]
@nearest_vertex_lookup[x_slot][y_slot] << vert
end
p model.faces.first
end
def height_at(vertex, max_distance = Float::INFINITY)