mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Terrrain fill dome, added terrain to face count
This commit is contained in:
@@ -9,5 +9,11 @@ class IMICFPS
|
||||
super
|
||||
glEnable(GL_LIGHTING)
|
||||
end
|
||||
|
||||
def update
|
||||
super
|
||||
@y_rotation+=0.01
|
||||
@y_rotation%=360
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -100,6 +100,7 @@ class IMICFPS
|
||||
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
|
||||
# glDrawArrays(GL_TRIANGLE_STRIP, 0, @vertices.size/3)
|
||||
glDrawArrays(GL_TRIANGLES, 0, @vertices.size/3)
|
||||
$window.number_of_faces+=@vertices.size/3
|
||||
|
||||
glDisableClientState(GL_VERTEX_ARRAY)
|
||||
glDisableClientState(GL_NORMAL_ARRAY)
|
||||
|
||||
Reference in New Issue
Block a user