mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
31 lines
518 B
C++
31 lines
518 B
C++
#ifndef ANIMATABLE_H
|
|
#define ANIMATABLE_H
|
|
|
|
#include "keyframeChannel.h"
|
|
|
|
namespace vb01{
|
|
class Animatable{
|
|
public:
|
|
enum Type{
|
|
NONE,
|
|
NODE,
|
|
BONE,
|
|
SHAPE_KEY,
|
|
LIGHT,
|
|
PARTICLE_EMITTER,
|
|
MATERIAL_UNIFORM,
|
|
TEXTURE
|
|
};
|
|
|
|
Animatable(Type, std::string = "");
|
|
virtual void animate(float, KeyframeChannel){}
|
|
inline std::string getName(){return name;}
|
|
inline Type getType(){return type;}
|
|
protected:
|
|
std::string name;
|
|
Type type = Type::NONE;
|
|
};
|
|
}
|
|
|
|
#endif
|