Browse Source

Kamera drehung setzen

kolja 5 years ago
parent
commit
c8a875e84a
2 changed files with 6 additions and 0 deletions
  1. 5 0
      Kamera2D.cpp
  2. 1 0
      Kamera2D.h

+ 5 - 0
Kamera2D.cpp

@@ -35,6 +35,11 @@ void Kamera2D::lookAtWorldArea( int width, int height )
     // TODO have two scaling factors
 }
 
+void Kamera2D::setDrehung( float rotation )
+{
+    this->rotation = rotation;
+}
+
 void Kamera2D::setZoom( float zoom )
 {
     this->zoom = zoom;

+ 1 - 0
Kamera2D.h

@@ -25,6 +25,7 @@ namespace Framework
         __declspec( dllexport ) virtual ~Kamera2D();
         __declspec( dllexport ) void lookAtWorldPos( int x, int y );
         __declspec( dllexport ) void lookAtWorldArea( int width, int height );
+        __declspec( dllexport ) void setDrehung( float rotation );
         __declspec( dllexport ) void setZoom( float zoom );
         __declspec( dllexport ) void setWelt( Welt2D *welt, bool tick );
         __declspec( dllexport ) bool tick( double time );