1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #pragma once
- #include "Vec3.h"
- namespace Framework
- {
- class Skelett;
- class Knochen;
- class Animation3D
- {
- private:
- struct KnochenData
- {
- KnochenData *next;
- double time;
- Vec3<float> pos;
- Vec3<float> rot;
- };
- KnochenData *kd[ MAX_KNOCHEN_ANZ ];
- double maxTime;
- int ref;
-
- void deleteKnochenData( KnochenData *d );
- public:
-
- __declspec( dllexport ) Animation3D();
-
- __declspec( dllexport ) ~Animation3D();
-
-
-
-
-
- __declspec( dllexport ) void addKeyFrame( int kId, double time, Vec3<float> pos, Vec3<float> rot );
-
-
-
-
- __declspec( dllexport ) void apply( Skelett *zS, double &timeOffset, double sec ) const;
-
-
-
-
- __declspec( dllexport ) void apply( Knochen *zK, double timeOffset, double sec ) const;
-
-
- __declspec( dllexport ) Animation3D *getThis();
-
-
- __declspec( dllexport ) Animation3D *release();
- };
- }
|