diff options
Diffstat (limited to 'src/koopatlas/camera.h')
-rw-r--r-- | src/koopatlas/camera.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/koopatlas/camera.h b/src/koopatlas/camera.h index 39e34d0..836c819 100644 --- a/src/koopatlas/camera.h +++ b/src/koopatlas/camera.h @@ -3,6 +3,8 @@ #include "koopatlas/core.h" +#define STD_ZOOM 2.8f + class dWorldCamera_c : public dBase_c { public: int onCreate(); @@ -20,7 +22,6 @@ class dWorldCamera_c : public dBase_c { Vec camPos, camTarget, camUp; - float currentX, currentY, zoomLevel; void calculateScreenGeometry(); @@ -28,6 +29,14 @@ class dWorldCamera_c : public dBase_c { float zoomDivisor, screenLeft, screenTop, screenWidth, screenHeight; + bool followPlayer; + void panToBounds(float left, float top, float right, float bottom); + void panToPosition(float x, float y, float zoom=STD_ZOOM); + bool panning; + float panFromX, panFromY, panToX, panToY; + float panFromZoom, panToZoom; + float panCurrentStep; + float panTotalSteps; void doStuff(float); void generateCameraMatrices(); |