Controller.h 441 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _CONTROLLER_H_
  2. #define _CONTROLLER_H_
  3. #include "common.h"
  4. /// Scenegraph node controller (A)
  5. class Controller
  6. {
  7. public:
  8. enum Type
  9. {
  10. CT_SKEL_ANIM,
  11. CT_SKEL,
  12. CT_MATERIAL,
  13. CT_LIGHT_MTL,
  14. CT_TRF,
  15. CT_LIGHT
  16. };
  17. PROPERTY_R( Type, type, getType ) ///< Once the type is set nothing can change it
  18. public:
  19. Controller( Type type_ );
  20. virtual ~Controller();
  21. virtual void update( float time ) = 0;
  22. };
  23. #endif