Open Source Tomb Raider Engine
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*!
  2. * \file include/Sprite.h
  3. * \brief World Sprite
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _SPRITE_H_
  8. #define _SPRITE_H_
  9. #include "math/math.h"
  10. class Sprite {
  11. public:
  12. Sprite(vec3_t _vertex[4], vec2_t _texel[4], vec3_t _pos, vec_t _radius, int _texture);
  13. void display();
  14. private:
  15. vec3_t vertex[4];
  16. vec2_t texel[4];
  17. vec3_t pos;
  18. vec_t radius; //!< \fixme yeah, I know (I don't? --xythobuz)
  19. int texture;
  20. };
  21. class SpriteSequence {
  22. public:
  23. ~SpriteSequence();
  24. void add(Sprite &s);
  25. unsigned int size();
  26. Sprite &get(unsigned int index);
  27. private:
  28. std::vector<Sprite *> sprites;
  29. };
  30. #endif