From 70b40f67824b3d612235c382aa83821c054fa51e Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 17 Apr 2024 00:35:58 +0300 Subject: Object libraries like Vector2 optimizations. --- examples/free_camera3d/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/free_camera3d/main.lua') diff --git a/examples/free_camera3d/main.lua b/examples/free_camera3d/main.lua index 842adc8..342751e 100644 --- a/examples/free_camera3d/main.lua +++ b/examples/free_camera3d/main.lua @@ -10,8 +10,8 @@ local camera = {} local targetVisible = false function RL.init() - local mPos = Vec2:new( RL.GetMonitorPosition( monitor ) ) - local mSize = Vec2:new( RL.GetMonitorSize( monitor ) ) + local mPos = Vec2:newT( RL.GetMonitorPosition( monitor ) ) + local mSize = Vec2:newT( RL.GetMonitorSize( monitor ) ) local winSize = Vec2:new( 1028, 720 ) RL.SetWindowTitle( "Free Camera3D" ) -- cgit v1.2.3