mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-02 01:51:37 +00:00
added uniform #ifdef _xxx_H encapsulation and appropriate includes to avoid header dependencies and circular conflicts
(work in progress, need to clean .c files as well)
This commit is contained in:
parent
4a5ffaed66
commit
440b2aec18
41 changed files with 315 additions and 171 deletions
|
@ -18,11 +18,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
*/
|
||||
|
||||
// refresh.h -- public interface to refresh functions
|
||||
// render.h -- public interface to refresh functions
|
||||
|
||||
#ifndef _RENDER_H
|
||||
#define _RENDER_H
|
||||
|
||||
#include "common.h"
|
||||
#include "mathlib.h"
|
||||
#include "cvar.h"
|
||||
#include "vid.h"
|
||||
//#include "model.h"
|
||||
//now we know why (struct model_s *) is used here instead of model_t
|
||||
//damn circular reference ! same with player_info_s -- yan
|
||||
|
||||
#define TOP_RANGE 16 // soldier uniform colors
|
||||
#define BOTTOM_RANGE 96
|
||||
|
||||
|
@ -36,7 +44,6 @@ typedef struct efrag_s
|
|||
struct efrag_s *entnext;
|
||||
} efrag_t;
|
||||
|
||||
|
||||
typedef struct entity_s
|
||||
{
|
||||
int keynum; // for matching entities in different frames
|
||||
|
@ -97,13 +104,11 @@ typedef struct
|
|||
int ambientlight;
|
||||
} refdef_t;
|
||||
|
||||
|
||||
//
|
||||
// refresh
|
||||
//
|
||||
extern int reinit_surfcache;
|
||||
|
||||
|
||||
extern refdef_t r_refdef;
|
||||
extern vec3_t r_origin, vpn, vright, vup;
|
||||
|
||||
|
@ -140,7 +145,6 @@ void R_ClearParticles (void);
|
|||
void R_DrawParticles (void);
|
||||
void R_DrawWaterSurfaces (void);
|
||||
|
||||
|
||||
//
|
||||
// surface cache related
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue