diff options
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/main.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/src/main.rb b/test/src/main.rb index b2e91e9..aaffbfb 100644 --- a/test/src/main.rb +++ b/test/src/main.rb @@ -17,10 +17,11 @@ BOX_ROTATION_SPEED = Math::PI/180; TRANSLATION_SPEED = 0.5; def init() - $texture = CandyGear::Texture.from_image("textures/color_texture.png"); - $model = CandyGear::Model.new("models/cube.cgmodel", $texture); + texture = CandyGear::Texture.from_image("textures/color_texture.png"); + mesh = CandyGear::Mesh.new("meshes/cube.cgmesh"); + $model = CandyGear::Model.new(mesh, texture); $sprite = CandyGear::Sprite.new( - $texture, CandyGear::Vector4D.new(0, 0, 1.0, 1.0)); + texture, CandyGear::Vector4D.new(0, 0, 1.0, 1.0)); $sprite_position = CandyGear::Vector4D.new(1.0, 1.0, 101.0, 101.0); $instances = [ |