1 #ifndef RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_
2 #define RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_
4 #include "./raylib.hpp"
5 #include "./Vector2.hpp"
6 #include "./raylib-cpp-utils.hpp"
20 float zoomValue = 1) {
23 rotation = rotationValue;
39 GETTERSETTER(
float, Rotation, rotation)
40 GETTERSETTER(
float, Zoom, zoom)
51 return ::GetCameraMatrix2D(*
this);
58 return ::GetWorldToScreen2D(position, *
this);
65 return ::GetScreenToWorld2D(position, *
this);
69 inline void set(const ::Camera2D& camera) {
70 offset = camera.offset;
71 target = camera.target;
72 rotation = camera.rotation;
78 #endif // RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_