This repository has been archived on 2022-06-27. You can view files and clone it, but cannot push or open issues or pull requests.
2008-11-15 22:00:00 +01:00
|
|
|
|
//=======================================================================
|
|
|
|
|
// Copyright XashXT Group 2008 <20>
|
|
|
|
|
// r_model.h - renderer model types
|
|
|
|
|
//=======================================================================
|
|
|
|
|
|
|
|
|
|
#ifndef R_MODEL_H
|
|
|
|
|
#define R_MODEL_H
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
uint index[3];
|
|
|
|
|
} mstudiotriangle_t;
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
int index[3];
|
|
|
|
|
} mstudioneighbor_t;
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
vec3_t point;
|
|
|
|
|
vec2_t st;
|
2009-01-31 22:00:00 +01:00
|
|
|
|
rgba_t color;
|
2008-11-15 22:00:00 +01:00
|
|
|
|
} mstudiopoint_t;
|
|
|
|
|
|
|
|
|
|
typedef struct mstudiosurface_s
|
|
|
|
|
{
|
|
|
|
|
struct mstudiosurface_s *next;
|
|
|
|
|
|
|
|
|
|
int numIndices;
|
|
|
|
|
int numVertices;
|
|
|
|
|
|
|
|
|
|
uint *indices;
|
|
|
|
|
mstudiopoint_t *points;
|
|
|
|
|
} mstudiosurface_t;
|
|
|
|
|
|
|
|
|
|
typedef struct mstudiomesh_s
|
|
|
|
|
{
|
2009-01-31 22:00:00 +01:00
|
|
|
|
float s;
|
|
|
|
|
float t;
|
|
|
|
|
int flags; // alternative texcoords, etc
|
|
|
|
|
vec3_t *verts; // pointer to globals vertices array
|
|
|
|
|
vec2_t *chrome; // pointer to global chrome coords array
|
|
|
|
|
short *tricmds; // triangle commands
|
|
|
|
|
int numVerts; // to avoid overflow
|
|
|
|
|
int numTris;
|
2008-11-15 22:00:00 +01:00
|
|
|
|
} mstudiomesh_t;
|
|
|
|
|
|
|
|
|
|
#endif//R_MODEL_H
|