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