mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Wireframes! Player now has a name tag.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user