Browse Source

Zugriff auf die MAtrix einer Kamera

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

+ 5 - 0
Kamera2D.cpp

@@ -123,6 +123,11 @@ float Kamera2D::getZoom()
     return zoom;
 }
 
+Mat3< float > Kamera2D::getMatrix()
+{
+    return matrix;
+}
+
 Kamera2D *Kamera2D::getThis()
 {
     ref++;

+ 1 - 0
Kamera2D.h

@@ -36,6 +36,7 @@ namespace Framework
         __declspec( dllexport ) Vertex getWorldPosition();
         __declspec( dllexport ) float getRotation();
         __declspec( dllexport ) float getZoom();
+        __declspec( dllexport ) Mat3< float > getMatrix();
         __declspec( dllexport ) Kamera2D *getThis();
         __declspec( dllexport ) Kamera2D *release();
     };