1 #ifndef RAYLIB_CPP_CAMERA3D_HPP_ 2 #define RAYLIB_CPP_CAMERA3D_HPP_ 12 #include "Vector3.hpp" 19 position = positionValue;
30 GETTERSETTER(Vector3,Up,up)
31 GETTERSETTER(
float,Fovy,fovy)
32 GETTERSETTER(
int,Type,type)
44 inline void set(const ::Camera3D& camera) {
45 position = camera.position;
46 target = camera.target;
53 position = camera.position;
54 target = camera.target;
70 return ::GetCameraMatrix(*
this);
74 ::SetCameraMode(*
this, mode);
79 ::SetCameraAltControl(altKey);
84 ::SetCameraSmoothZoomControl(szKey);
89 ::SetCameraMoveControls(frontKey, backKey, rightKey, leftKey, upKey, downKey);
104 return ::GetMouseRay(mousePosition, *
this);
108 return ::GetWorldToScreen(position, *
this);
117 ::DrawBillboardRec(*
this, texture, sourceRec, center, size, tint);
Camera3D & operator=(const Camera3D &camera)
Camera3D & DrawBillboard(Texture2D texture, Rectangle sourceRec, Vector3 center, float size, ::Color tint=WHITE)
Ray GetMouseRay(::Vector2 mousePosition)
Camera3D & DrawBillboard(::Texture2D texture, ::Vector3 center, float size, ::Color tint=WHITE)
Camera3D & SetAltControl(int altKey)
Camera3D & UpdateVrTracking()
Vector2 GetWorldToScreen(::Vector3 position)
Camera3D & SetSmoothZoomControl(int szKey)
Provides all the classes associated with raylib-cpp.
Camera3D & SetMode(int mode)
Camera3D & SetMoveControls(int frontKey, int backKey, int rightKey, int leftKey, int upKey, int downKey)
Camera3D(::Vector3 positionValue, ::Vector3 targetValue, ::Vector3 upValue, float fovyValue=0, int typeValue=0)