1 #ifndef RAYLIB_CPP_INCLUDE_CAMERA3D_HPP_
2 #define RAYLIB_CPP_INCLUDE_CAMERA3D_HPP_
4 #include "./raylib.hpp"
5 #include "./Vector3.hpp"
6 #include "./raylib-cpp-utils.hpp"
19 float fovyValue = 0,
int projectionValue = 0) {
20 position = positionValue;
24 projection = projectionValue;
29 GETTERSETTER(::
Vector3, Position, position)
32 GETTERSETTER(
float, Fovy, fovy)
33 GETTERSETTER(
int, Projection, projection)
60 return ::GetCameraMatrix(*
this);
67 ::SetCameraMode(*
this, mode);
75 ::SetCameraAltControl(altKey);
83 ::SetCameraSmoothZoomControl(szKey);
91 int frontKey,
int backKey,
92 int rightKey,
int leftKey,
93 int upKey,
int downKey) {
94 ::SetCameraMoveControls(frontKey, backKey, rightKey, leftKey, upKey, downKey);
110 return ::GetMouseRay(mousePosition, *
this);
117 return ::GetWorldToScreen(position, *
this);
124 const ::Texture2D& texture,
127 ::
Color tint = {255, 255, 255, 255}) {
136 const ::Texture2D& texture,
140 ::
Color tint = {255, 255, 255, 255}) {
141 ::DrawBillboardRec(*
this, texture, sourceRec, center, size, tint);
146 inline void set(const ::Camera3D& camera) {
147 position = camera.position;
148 target = camera.target;
151 projection = camera.projection;
155 typedef Camera3D Camera;
158 #endif // RAYLIB_CPP_INCLUDE_CAMERA3D_HPP_