diff options
author | Frederico Linhares <fred@linhares.blue> | 2022-12-21 14:46:09 -0300 |
---|---|---|
committer | Frederico Linhares <fred@linhares.blue> | 2022-12-23 11:08:59 -0300 |
commit | 1cd2d838bf1682e125d52d12ac6f2960df65c7e0 (patch) | |
tree | 6e2ae0881b826f94a99b90dc5478a96c85c6d043 /test/src | |
parent | 993d033617eaeb582e0e5f0525fa51e1c83893da (diff) |
refa Merge Rectangle into Vector4D
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/main.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/src/main.rb b/test/src/main.rb index b7bbe85..84a47bd 100644 --- a/test/src/main.rb +++ b/test/src/main.rb @@ -30,8 +30,8 @@ def init() $model = CandyGear::Model.new(mesh, texture); $sprite = CandyGear::Sprite.new( texture, CandyGear::Vector4D.new(0, 0, 1.0, 1.0)); - $rectangle = CandyGear::Rectangle.new(102.0, 1.0, 101.0, 101.0) - $sprite_position = CandyGear::Vector4D.new(1.0, 1.0, 101.0, 101.0); + $rectangle = CandyGear::Vector4D.new(103.0, 1.0, 100.0, 100.0); + $sprite_position = CandyGear::Vector4D.new(1.0, 1.0, 100.0, 100.0); $instances = [ CandyGear::Vector3D.new(5.0, 0.0, 0.0), @@ -88,7 +88,7 @@ def quit() = CandyGear.quit(); def tick() $sprite.draw($view1, $sprite_position); $instances_rotation.rotate(0.0, BOX_ROTATION_SPEED); - $rectangle.draw($view1, $color); + $rectangle.draw_rectangle($view1, $color); $instances.each do |i| $model.draw(i, $instances_rotation); end |