Open Source Tomb Raider Engine
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

WorldData.h 911B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /*! \fixme For now shaders are textures on tex objects
  12. * and materials on color objects. If -1
  13. * then it doesn't have that information yet.
  14. */
  15. typedef struct {
  16. int index[3];
  17. vec_t st[6];
  18. int texture;
  19. unsigned short transparency;
  20. } texture_tri_t;
  21. typedef struct {
  22. std::vector<texture_tri_t *> texturedTriangles;
  23. std::vector<texture_tri_t *> coloredTriangles;
  24. std::vector<texture_tri_t *> texturedRectangles;
  25. std::vector<texture_tri_t *> coloredRectangles;
  26. vec3_t center;
  27. float radius;
  28. unsigned int vertexCount;
  29. vec_t *vertices;
  30. unsigned int colorCount;
  31. vec_t *colors;
  32. unsigned int normalCount;
  33. vec_t *normals;
  34. } model_mesh_t;
  35. #endif