Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

WorldData.h 938B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*!
  2. * \file include/WorldData.h
  3. * \brief Structs and enums for the game world (model)
  4. *
  5. * \author Mongoose
  6. * \author xythobuz
  7. */
  8. #ifndef _WORLDDATA_H_
  9. #define _WORLDDATA_H_
  10. #include "math/math.h"
  11. #include "SkeletalModel.h"
  12. /*! \fixme For now shaders are textures on tex objects
  13. * and materials on color objects. If -1
  14. * then it doesn't have that information yet.
  15. */
  16. typedef struct {
  17. int index[3];
  18. vec_t st[6];
  19. int texture;
  20. unsigned short transparency;
  21. } texture_tri_t;
  22. typedef struct {
  23. std::vector<texture_tri_t *> texturedTriangles;
  24. std::vector<texture_tri_t *> coloredTriangles;
  25. std::vector<texture_tri_t *> texturedRectangles;
  26. std::vector<texture_tri_t *> coloredRectangles;
  27. vec3_t center;
  28. float radius;
  29. unsigned int vertexCount;
  30. vec_t *vertices;
  31. unsigned int colorCount;
  32. vec_t *colors;
  33. unsigned int normalCount;
  34. vec_t *normals;
  35. } model_mesh_t;
  36. #endif