123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #pragma once
- #include "Zeichnung.h"
- #include "Mat3.h"
- #include "Welt2D.h"
- namespace Framework
- {
- class Welt2D;
- class Object2D;
- class Kamera2D : public ZeichnungHintergrund
- {
- protected:
- Welt2D *welt;
- bool tickWelt;
- Vertex wPos;
- float rotation;
- float zoom;
- Mat3< float > matrix;
- Text *name;
- int ref;
- public:
- __declspec( dllexport ) Kamera2D();
- __declspec( dllexport ) virtual ~Kamera2D();
- __declspec( dllexport ) void setName( const char *name );
- __declspec( dllexport ) void setName( Text *name );
- __declspec( dllexport ) void lookAtWorldPos( Vertex pos );
- __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 );
- __declspec( dllexport ) void render( Bild &zRObj );
- __declspec( dllexport ) Vertex getWorldCoordinates( Punkt screenPos );
- __declspec( dllexport ) Vertex getWorldDirection( Vertex dir );
- __declspec( dllexport ) Vertex getWorldPosition();
- __declspec( dllexport ) float getRotation();
- __declspec( dllexport ) float getZoom();
- __declspec( dllexport ) const Mat3< float > &getMatrix();
- __declspec( dllexport ) Text *getName();
- __declspec( dllexport ) Text *zName();
- __declspec( dllexport ) Kamera2D *getThis();
- __declspec( dllexport ) Kamera2D *release();
- };
- class TestKamera2D : public Kamera2D
- {
- public:
- __declspec( dllexport ) bool tick( double time );
- };
- }
|