1 #ifndef RAYLIB_CPP_CAMERA_HPP_
2 #define RAYLIB_CPP_CAMERA_HPP_
12 #include "./Vector2.hpp"
13 #include "./raylib-cpp-utils.hpp"
21 rotation = rotationValue;
36 GETTERSETTER(
float,Rotation,rotation)
37 GETTERSETTER(
float,Zoom,zoom)
50 return ::GetCameraMatrix2D(*
this);
53 return ::GetWorldToScreen2D(position, *
this);
56 return ::GetScreenToWorld2D(position, *
this);
59 inline void set(const ::Camera2D& camera) {
60 offset = camera.offset;
61 target = camera.target;
62 rotation = camera.rotation;
67 offset = camera.offset;
68 target = camera.target;
69 rotation = camera.rotation;