25 #ifndef RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_
26 #define RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_
28 #include "./raylib.hpp"
29 #include "./Vector2.hpp"
30 #include "./raylib-cpp-utils.hpp"
41 float zoomValue = 1) {
44 rotation = rotationValue;
60 GETTERSETTER(
float, Rotation, rotation)
61 GETTERSETTER(
float, Zoom, zoom)
77 return ::GetCameraMatrix2D(*
this);
84 return ::GetWorldToScreen2D(position, *
this);
91 return ::GetScreenToWorld2D(position, *
this);
95 inline void set(const ::Camera2D& camera) {
96 offset = camera.offset;
97 target = camera.target;
98 rotation = camera.rotation;
103 offset = camera.offset;
104 target = camera.target;
105 rotation = camera.rotation;
111 #endif // RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_