Wireframes! Player now has a name tag.

This commit is contained in:
2018-03-23 13:51:55 -05:00
parent 0b0d307d2a
commit 021805cd96
3 changed files with 87 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ class IMICFPS
def set_texture(texture_path)
puts "#{name} texture #{texture_path}"
@texture = Gosu::Image.new(texture_path, retro: true)
@texture = Gosu::Image.new(texture_path, retro: false)
array_of_pixels = @texture.to_blob
tex_names_buf = ' ' * 8

View File

@@ -72,7 +72,13 @@ class IMICFPS
glColorPointer(3, GL_FLOAT, 0, o.flattened_materials)
glNormalPointer(GL_FLOAT, 0, o.flattened_normals)
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
if $debug
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
else
glDrawArrays(GL_TRIANGLES, 0, o.flattened_vertices_size/4)
end
glDisableClientState(GL_VERTEX_ARRAY)
glDisableClientState(GL_COLOR_ARRAY)