whitespace

This commit is contained in:
Bill Currie 2010-11-29 09:34:11 +09:00
parent 763ae71335
commit 85c693d2b8

View file

@ -53,8 +53,7 @@
// BRUSH MODELS =============================================================== // BRUSH MODELS ===============================================================
typedef struct efrag_s typedef struct efrag_s {
{
struct mleaf_s *leaf; struct mleaf_s *leaf;
struct efrag_s *leafnext; struct efrag_s *leafnext;
struct entity_s *entity; struct entity_s *entity;
@ -65,13 +64,11 @@ typedef struct efrag_s
// in memory representation =================================================== // in memory representation ===================================================
// !!! if this is changed, it must be changed in asm_draw.h too !!! // !!! if this is changed, it must be changed in asm_draw.h too !!!
typedef struct typedef struct {
{
vec3_t position; vec3_t position;
} mvertex_t; } mvertex_t;
typedef struct texture_s typedef struct texture_s {
{
char name[16]; char name[16];
unsigned int width, height; unsigned int width, height;
int gl_texturenum; int gl_texturenum;
@ -99,14 +96,12 @@ typedef struct texture_s
#define SURF_LIGHTBOTHSIDES 0x800 #define SURF_LIGHTBOTHSIDES 0x800
// !!! if this is changed, it must be changed in asm_draw.h too !!! // !!! if this is changed, it must be changed in asm_draw.h too !!!
typedef struct typedef struct {
{
unsigned short v[2]; unsigned short v[2];
unsigned int cachededgeoffset; unsigned int cachededgeoffset;
} medge_t; } medge_t;
typedef struct typedef struct {
{
float vecs[2][4]; float vecs[2][4];
float mipadjust; float mipadjust;
texture_t *texture; texture_t *texture;
@ -115,8 +110,7 @@ typedef struct
#define VERTEXSIZE 7 #define VERTEXSIZE 7
typedef struct glpoly_s typedef struct glpoly_s {
{
struct glpoly_s *next; struct glpoly_s *next;
struct glpoly_s *chain; struct glpoly_s *chain;
struct glpoly_s *fb_chain; struct glpoly_s *fb_chain;
@ -125,8 +119,7 @@ typedef struct glpoly_s
float verts[4][VERTEXSIZE]; // variable sized (xyz s1t1 s2t2) float verts[4][VERTEXSIZE]; // variable sized (xyz s1t1 s2t2)
} glpoly_t; } glpoly_t;
typedef struct msurface_s typedef struct msurface_s {
{
int visframe; // should be drawn when node is crossed int visframe; // should be drawn when node is crossed
mplane_t *plane; mplane_t *plane;
@ -159,8 +152,7 @@ typedef struct msurface_s
byte *samples; // [numstyles*surfsize] byte *samples; // [numstyles*surfsize]
} msurface_t; } msurface_t;
typedef struct mnode_s typedef struct mnode_s {
{
// common with leaf // common with leaf
int contents; // 0, to differentiate from leafs int contents; // 0, to differentiate from leafs
int visframe; // node needs to be traversed if current int visframe; // node needs to be traversed if current
@ -177,8 +169,7 @@ typedef struct mnode_s
unsigned short numsurfaces; unsigned short numsurfaces;
} mnode_t; } mnode_t;
typedef struct mleaf_s typedef struct mleaf_s {
{
// common with node // common with node
int contents; // wil be a negative contents number int contents; // wil be a negative contents number
int visframe; // node needs to be traversed if current int visframe; // node needs to be traversed if current
@ -199,8 +190,7 @@ typedef struct mleaf_s
byte ambient_sound_level[NUM_AMBIENTS]; byte ambient_sound_level[NUM_AMBIENTS];
} mleaf_t; } mleaf_t;
typedef struct hull_s typedef struct hull_s {
{
dclipnode_t *clipnodes; dclipnode_t *clipnodes;
mplane_t *planes; mplane_t *planes;
int firstclipnode; int firstclipnode;
@ -212,8 +202,7 @@ typedef struct hull_s
// SPRITE MODELS ============================================================== // SPRITE MODELS ==============================================================
// FIXME: shorten these? // FIXME: shorten these?
typedef struct mspriteframe_s typedef struct mspriteframe_s {
{
int width; int width;
int height; int height;
float up, down, left, right; float up, down, left, right;
@ -221,21 +210,18 @@ typedef struct mspriteframe_s
int gl_texturenum; int gl_texturenum;
} mspriteframe_t; } mspriteframe_t;
typedef struct typedef struct {
{
int numframes; int numframes;
float *intervals; float *intervals;
mspriteframe_t *frames[1]; mspriteframe_t *frames[1];
} mspritegroup_t; } mspritegroup_t;
typedef struct typedef struct {
{
spriteframetype_t type; spriteframetype_t type;
mspriteframe_t *frameptr; mspriteframe_t *frameptr;
} mspriteframedesc_t; } mspriteframedesc_t;
typedef struct typedef struct {
{
int type; int type;
int maxwidth; int maxwidth;
int maxheight; int maxheight;
@ -250,8 +236,7 @@ typedef struct
// Alias models are position independent, so the cache manager can move them. // Alias models are position independent, so the cache manager can move them.
// NOTE: the first three lines must match maliasgroupframedesc_t // NOTE: the first three lines must match maliasgroupframedesc_t
typedef struct typedef struct {
{
trivertx_t bboxmin; trivertx_t bboxmin;
trivertx_t bboxmax; trivertx_t bboxmax;
int frame; int frame;
@ -262,30 +247,26 @@ typedef struct
char name[16]; char name[16];
} maliasframedesc_t; } maliasframedesc_t;
typedef struct typedef struct {
{
aliasskintype_t type; aliasskintype_t type;
int skin; int skin;
int texnum; int texnum;
int fb_texnum; int fb_texnum;
} maliasskindesc_t; } maliasskindesc_t;
typedef struct typedef struct {
{
trivertx_t bboxmin; trivertx_t bboxmin;
trivertx_t bboxmax; trivertx_t bboxmax;
int frame; int frame;
} maliasgroupframedesc_t; } maliasgroupframedesc_t;
typedef struct typedef struct {
{
int numframes; int numframes;
int intervals; int intervals;
maliasgroupframedesc_t frames[1]; maliasgroupframedesc_t frames[1];
} maliasgroup_t; } maliasgroup_t;
typedef struct typedef struct {
{
int numskins; int numskins;
int intervals; int intervals;
maliasskindesc_t skindescs[1]; maliasskindesc_t skindescs[1];
@ -339,8 +320,7 @@ typedef enum {mod_brush, mod_sprite, mod_alias} modtype_t;
#define EF_TRACER3 128 // purple trail #define EF_TRACER3 128 // purple trail
#define EF_GLOWTRAIL 4096 // glowcolor particle trail #define EF_GLOWTRAIL 4096 // glowcolor particle trail
typedef struct model_s typedef struct model_s {
{
char name[MAX_QPATH]; char name[MAX_QPATH];
qboolean needload; // bmodels and sprites don't cache normally qboolean needload; // bmodels and sprites don't cache normally
qboolean hasfullbrights; qboolean hasfullbrights;