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"
36 float zoomValue = 1) {
39 rotation = rotationValue;
55 GETTERSETTER(
float, Rotation, rotation)
56 GETTERSETTER(
float, Zoom, zoom)
72 return ::GetCameraMatrix2D(*
this);
79 return ::GetWorldToScreen2D(position, *
this);
86 return ::GetScreenToWorld2D(position, *
this);
90 inline void set(const ::Camera2D& camera) {
91 offset = camera.offset;
92 target = camera.target;
93 rotation = camera.rotation;
98 offset = camera.offset;
99 target = camera.target;
100 rotation = camera.rotation;
106 #endif // RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_