Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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