summaryrefslogtreecommitdiff
path: root/test/src/main.rb
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2022-12-23 15:02:39 -0300
committerFrederico Linhares <fred@linhares.blue>2022-12-23 15:02:39 -0300
commit75337ae1c59e8b2c3bc6fbcd7ccafc7a8205d6b2 (patch)
tree10b33abdf881e33ff20b7a11a789f62dd05124cf /test/src/main.rb
parent1cd2d838bf1682e125d52d12ac6f2960df65c7e0 (diff)
feat Add size to projections in 2D views
Diffstat (limited to 'test/src/main.rb')
-rw-r--r--test/src/main.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/src/main.rb b/test/src/main.rb
index 84a47bd..53e92a0 100644
--- a/test/src/main.rb
+++ b/test/src/main.rb
@@ -47,8 +47,10 @@ def init()
$camera_rotation = CandyGear::Rotation3D.new(0.0, 0.0, 0.0);
color = CandyGear::Vector3D.new(0.12, 0.12, 0.18);
- $view1 = CandyGear::View2D.new(CandyGear::Vector4D.new(0, 0, 1280, 360));
- $view2 = CandyGear::View3D.new(CandyGear::Vector4D.new(0, 360, 1280, 360));
+ $view1 = CandyGear::View2D.new(
+ CandyGear::Vector4D.new(0, 0, 1280, 360), 640, 180);
+ $view2 = CandyGear::View3D.new(
+ CandyGear::Vector4D.new(0, 360, 1280, 360), 1280, 360);
CandyGear.views = [$view1, $view2];
$view2.camera_position = $camera_position;