29 void setScaling(
float mapWidth,
float mapHeight);
46 [[nodiscard]]
float xToPixel(
float normalizedX)
const;
53 [[nodiscard]]
float yToPixel(
float normalizedY)
const;
void setScaling(float mapWidth, float mapHeight)
Update the Camera scaling factors based on the current world.
Definition Camera.cpp:30
float xToPixel(float normalizedX) const
Definition Camera.cpp:65
float getTileWidth() const
Returns the width of a tile according to the current scaling factors.
Definition Camera.cpp:73
void resized()
Update the Camera scaling factors based on the current window size.
Definition Camera.cpp:52
void operator=(const Camera &)=delete
static Camera & getInstance()
Returns an instance of the Camera class.
Definition Camera.cpp:22
Camera(Camera &other)=delete
float getTileHeight() const
Returns the height of a tile according to the current scaling factors.
Definition Camera.cpp:77
float yToPixel(float normalizedY) const
Definition Camera.cpp:69