Moved renderering system and model loading into CyberarmEngine, added island_test_map

This commit is contained in:
2020-07-15 21:28:57 -05:00
parent 9264ef6e58
commit 65cfc1a124
29 changed files with 6357 additions and 1874 deletions

View File

@@ -1,11 +1,6 @@
class IMICFPS
GAME_ROOT_PATH = File.expand_path("..", File.dirname(__FILE__))
TextureCoordinate = Struct.new(:u, :v, :weight)
Point = Struct.new(:x, :y)
Color = Struct.new(:red, :green, :blue, :alpha)
Face = Struct.new(:vertices, :uvs, :normals, :colors, :material, :smoothing)
# Objects exported from blender using the default or meter object scale will be close to 1 GL unit
MODEL_METER_SCALE = 1.0
@@ -13,4 +8,4 @@ class IMICFPS
EARTH_GRAVITY = 9.8 # m/s
# Moon
MOON_GRAVITY = 1.625 # m/s
end
end