From 1cd2d838bf1682e125d52d12ac6f2960df65c7e0 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Wed, 21 Dec 2022 14:46:09 -0300 Subject: refa Merge Rectangle into Vector4D --- test/src/main.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3