1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #pragma once
- #include "Mat4.h"
- #include "Zeichnung3D.h"
- #include "Punkt.h"
- struct D3D11_VIEWPORT;
- namespace Framework
- {
- struct MausEreignis;
- class Render3D;
- class Welt3D;
-
- class Kam3D
- {
- private:
- Mat4< float > view;
- Mat4< float > proj;
- float openingAngle;
- float minZ;
- float maxZ;
- Vec3< float > pos;
- float rotX;
- float rotY;
- float rotZ;
- D3D11_VIEWPORT *viewport;
- Welt3D *welt;
- int ref;
-
- void updateMatrix();
- public:
-
- __declspec( dllexport ) Kam3D();
-
- __declspec( dllexport ) ~Kam3D();
-
- __declspec( dllexport ) void setPosition( Vec3< float > pos );
-
-
- __declspec( dllexport ) void scrollIn( float val );
-
-
- __declspec( dllexport ) void scrollOut( float val );
-
-
- __declspec( dllexport ) void setAusrichtung( Vec3< float > ziel );
-
-
- __declspec( dllexport ) void setBildschirmPosition( Punkt p );
-
-
-
- __declspec( dllexport ) void setBildschirmPosition( int x, int y );
-
-
- __declspec( dllexport ) void setBildschirmSize( Punkt p );
-
-
-
- __declspec( dllexport ) void setBildschirmSize( int br, int hi );
-
-
- __declspec( dllexport ) void setWelt( Welt3D *w );
-
-
-
- __declspec( dllexport ) bool tick( double tv );
-
-
- __declspec( dllexport ) void doMausEreignis( MausEreignis &me );
-
-
- __declspec( dllexport ) void doTastaturEreignis( TastaturEreignis &te );
-
-
- __declspec( dllexport ) void render( Render3D *zRObj );
-
-
- __declspec( dllexport ) Kam3D *getThis();
-
-
- __declspec( dllexport ) Kam3D *release();
- };
- }
|