From ace448763e9d323a9ae852fc7cfffd3bafb96f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Fri, 21 May 2021 16:53:22 +0200 Subject: [PATCH] using ctor of Vector3 instead of C cast (CI fix) --- sources/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index 8f567072..3a0f544c 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -25,8 +25,11 @@ int main() RAY::Vector2 ballPosition = { (float)screenWidth/2, (float)screenHeight/2 }; RAY::Window &window = RAY::Window::getInstance(screenWidth, screenHeight, "Ta mère en slip", FLAG_WINDOW_RESIZABLE); - RAY::Camera::Camera3D camera((RAY::Vector3){ 30.0f, 20.0f, 30.0f }, (RAY::Vector3){ 0.0f, 0.0f, 0.0f }, - (RAY::Vector3){ 0.0f, 1.0f, 0.0f }, 70.0, CAMERA_PERSPECTIVE); + RAY::Camera::Camera3D camera(RAY::Vector3{30.0f, 20.0f, 30.0f}, + RAY::Vector3{0.0f, 0.0f, 0.0f}, + RAY::Vector3{0.0f, 1.0f, 0.0f }, + 70.0, + CAMERA_PERSPECTIVE); RAY::Drawables::Drawables3D::Grid grid(10, 5.0f); RAY::Drawables::Drawables3D::Cube cube({0}, {0}, {0});