123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
-
-
- #ifndef _WORLDDATA_H_
- #define _WORLDDATA_H_
-
- #include "math/math.h"
- #include "SkeletalModel.h"
-
-
- typedef enum {
- roomFlag_underWater = 0x0001
- } room_flags_t;
-
- typedef enum {
- worldMoveType_walkNoSwim = -1,
- worldMoveType_walk = 0,
- worldMoveType_noClipping = 1,
- worldMoveType_fly = 2,
- worldMoveType_swim = 3
- } worldMoveType;
-
- typedef struct {
- vec3_t pos;
- } vertex_t;
-
- typedef struct {
- vec2_t st;
- } texel_t;
-
-
-
-
- typedef struct {
- int index[3];
- vec_t st[6];
- int texture;
- unsigned short transparency;
- } texture_tri_t;
-
- typedef struct {
- std::vector<texture_tri_t *> texturedTriangles;
- std::vector<texture_tri_t *> coloredTriangles;
- std::vector<texture_tri_t *> texturedRectangles;
- std::vector<texture_tri_t *> coloredRectangles;
-
- vec3_t center;
- float radius;
-
- unsigned int vertexCount;
- vec_t *vertices;
-
- unsigned int colorCount;
- vec_t *colors;
-
- unsigned int normalCount;
- vec_t *normals;
- } model_mesh_t;
-
- typedef struct entity_s {
- int id;
- float pos[3];
- float angles[3];
- int type;
- int room;
- worldMoveType moveType;
- bool moving;
- struct entity_s *master;
-
- int state;
- int objectId;
-
- int modelId;
- SkeletalModel *tmpHook;
- bool animate;
-
-
-
- } entity_t;
-
-
-
- #endif
|