1 #ifndef RAYLIB_CPP_CAMERA3D_HPP_
2 #define RAYLIB_CPP_CAMERA3D_HPP_
12 #include "./Vector3.hpp"
13 #include "./raylib-cpp-utils.hpp"
19 position = positionValue;
31 GETTERSETTER(
float,Fovy,fovy)
32 GETTERSETTER(
int,Type,type)
54 return ::GetCameraMatrix(*
this);
58 ::SetCameraMode(*
this, mode);
63 ::SetCameraAltControl(altKey);
68 ::SetCameraSmoothZoomControl(szKey);
73 ::SetCameraMoveControls(frontKey, backKey, rightKey, leftKey, upKey, downKey);
88 return ::GetMouseRay(mousePosition, *
this);
92 return ::GetWorldToScreen(position, *
this);
101 ::DrawBillboardRec(*
this, texture, sourceRec, center, size, tint);
106 inline void set(const ::Camera3D& camera) {
107 position = camera.position;
108 target = camera.target;
115 position = camera.position;
116 target = camera.target;