object3d.h 448 B

123456789101112131415161718192021222324252627
  1. #ifndef WALLENGINE_OBJECT3D_H
  2. #define WALLENGINE_OBJECT3D_H
  3. namespace wp
  4. {
  5. class object3d
  6. {
  7. public:
  8. enum Type
  9. {
  10. Type_Image = 0,
  11. Type_Model = 1,
  12. Type_Particle = 2,
  13. Type_None = 3
  14. };
  15. object3d (Type type);
  16. template <class T> T* as();
  17. template <class T> bool is();
  18. private:
  19. Type m_type;
  20. };
  21. };
  22. #endif //WALLENGINE_OBJECT3D_H