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)
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;
99 #endif // RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_