mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Count number of vertices instead of faces, added formatted_number to CommonMethods
This commit is contained in:
@@ -57,12 +57,11 @@ class IMICFPS
|
||||
|
||||
# populate_buffers
|
||||
|
||||
face_count = 0
|
||||
@objects.each {|o| face_count+=o.faces.size}
|
||||
@objects.each {|o| @vertex_count+=o.vertices.size}
|
||||
@objects.each_with_index do |o, i|
|
||||
puts " Model::Object Name: #{o.name}, Faces: #{o.faces.size}" if $debug
|
||||
puts " Model::Object Name: #{o.name}, Vertices: #{o.vertices.size}" if $debug
|
||||
end
|
||||
$window.number_of_faces+=face_count
|
||||
$window.number_of_vertices+=@vertex_count
|
||||
@model_has_texture = false
|
||||
@materials.each do |key, material|
|
||||
if material.texture_id
|
||||
|
||||
Reference in New Issue
Block a user