5#include "flint/core/api.h"
6#include "flint/math/types.h"
36 FLINT_API
void update(
float smoothing = 0.25f);
67 const Vec2i &mapPixelSize,
float smoothing = 0.2f);
80 void follow(
float targetX,
float targetY);
82 void updateViewRect();
FLINT_API void update(float smoothing=0.25f)
Adjust smoothing factor (lerp) used by future setTargetCenter.
FLINT_API float getZoom() const
FLINT_API void setViewSize(Vec2f size)
FLINT_API Vec2f screenToWorld(const Vec2f &sp, const Vec2i &screen) const
Transform screen‑space point back to world‑space.
FLINT_API Vec2f getCenter() const
FLINT_API void followClamped(const Vec2f &targetPos, const Vec2i &bufferSize, const Vec2i &mapPixelSize, float smoothing=0.2f)
Follow a target but clamp so that the view never leaves map.
FLINT_API FloatRect getViewRect() const
FLINT_API void setWorldSize(Vec2f size)
FLINT_API void setTargetCenter(Vec2f center)
Soft-lock camera center on a target (uses current smoothing).
FLINT_API void setZoom(float zoom)