Ripped IMICFPS::Wavefront::Model to IMICFPS::Model, more refactoring needed.

This commit is contained in:
2019-09-26 14:29:42 -05:00
parent f72008369d
commit f7936b38bc
6 changed files with 285 additions and 283 deletions

View File

@@ -23,7 +23,7 @@ class IMICFPS
@devisor = 500.0
@name_image = Gosu::Image.from_text("#{Etc.getlogin}", 100, font: "Consolas", align: :center)
# @name_image.save("temp.png")
@name_tex = @name_image.gl_tex_info
# @name_tex = @name_image.gl_tex_info
array_of_pixels = @name_image.to_blob
tex_names_buf = ' ' * 8

View File

@@ -21,7 +21,7 @@ class IMICFPS
unless load_model_from_cache
case @type
when :obj
@model = Wavefront::Model.new(file_path: @model_file, entity: entity)
@model = IMICFPS::Model.new(file_path: @model_file, entity: entity, parser: Wavefront::Parser)
else
raise "Unsupported model type, supported models are: #{@supported_models.join(', ')}"
end