codemp/cgame/tr_types.h File Reference

Go to the source code of this file.

Data Structures

struct  glconfig_t
struct  miniRefEntity_s
struct  poly_s
struct  polyVert_t
struct  refdef_t
struct  refEntity_t

Defines

#define MAX_DLIGHTS   32
#define MAX_ENTITIES   2048
#define MAX_MINI_ENTITIES   1024
#define TR_WORLDENT   (MAX_ENTITIES-1)
#define RF_MINLIGHT   0x00001
#define RF_THIRD_PERSON   0x00002
#define RF_FIRST_PERSON   0x00004
#define RF_DEPTHHACK   0x00008
#define RF_NODEPTH   0x00010
#define RF_VOLUMETRIC   0x00020
#define RF_NOSHADOW   0x00040
#define RF_LIGHTING_ORIGIN   0x00080
#define RF_SHADOW_PLANE   0x00100
#define RF_WRAP_FRAMES   0x00200
#define RF_FORCE_ENT_ALPHA   0x00400
#define RF_RGB_TINT   0x00800
#define RF_SHADOW_ONLY   0x01000
#define RF_DISTORTION   0x02000
#define RF_FORKED   0x04000
#define RF_TAPERED   0x08000
#define RF_GROW   0x10000
#define RF_DISINTEGRATE1   0x20000
#define RF_DISINTEGRATE2   0x40000
#define RF_SETANIMINDEX   0x80000
#define RF_ALPHA_DEPTH   0x100000
#define RF_FORCEPOST   0x200000
#define RDF_NOWORLDMODEL   1
#define RDF_HYPERSPACE   4
#define RDF_SKYBOXPORTAL   8
#define RDF_DRAWSKYBOX   16
#define RDF_AUTOMAP   32
#define RDF_NOFOG   64
#define MAX_RENDER_STRINGS   8
#define MAX_RENDER_STRING_LENGTH   32
#define OPENGL_DRIVER_NAME   "libGL.so"

Typedefs

typedef byte color4ub_t [4]
typedef poly_s poly_t
typedef miniRefEntity_s miniRefEntity_t
typedef int stereoFrame_t

Enumerations

enum  refEntityType_t {
  RT_MODEL, RT_POLY, RT_SPRITE, RT_ORIENTED_QUAD,
  RT_BEAM, RT_SABER_GLOW, RT_ELECTRICITY, RT_PORTALSURFACE,
  RT_LINE, RT_ORIENTEDLINE, RT_CYLINDER, RT_ENT_CHAIN,
  RT_MAX_REF_ENTITY_TYPE
}
enum  { STEREO_CENTER, STEREO_LEFT, STEREO_RIGHT }
enum  textureCompression_t { TC_NONE, TC_S3TC, TC_S3TC_DXT }

Variables

int skyboxportal
int drawskyboxportal


Define Documentation

#define MAX_DLIGHTS   32
 

Definition at line 7 of file tr_types.h.

#define MAX_ENTITIES   2048
 

Definition at line 11 of file tr_types.h.

Referenced by CG_PlayerShieldHit().

#define MAX_MINI_ENTITIES   1024
 

Definition at line 13 of file tr_types.h.

#define MAX_RENDER_STRING_LENGTH   32
 

Definition at line 255 of file tr_types.h.

#define MAX_RENDER_STRINGS   8
 

Definition at line 254 of file tr_types.h.

#define OPENGL_DRIVER_NAME   "libGL.so"
 

Definition at line 330 of file tr_types.h.

#define RDF_AUTOMAP   32
 

Definition at line 63 of file tr_types.h.

Referenced by CG_DrawAutoMap().

#define RDF_DRAWSKYBOX   16
 

Definition at line 61 of file tr_types.h.

Referenced by CG_DrawActive(), and CG_DrawSkyBoxPortal().

#define RDF_HYPERSPACE   4
 

Definition at line 58 of file tr_types.h.

#define RDF_NOFOG   64
 

Definition at line 64 of file tr_types.h.

Referenced by CG_DrawSkyBoxPortal().

#define RDF_NOWORLDMODEL   1
 

Definition at line 57 of file tr_types.h.

Referenced by CG_Draw3DModel(), CG_DrawAutoMap(), and Item_Model_Paint().

#define RDF_SKYBOXPORTAL   8
 

Definition at line 60 of file tr_types.h.

Referenced by CG_DrawSkyBoxPortal().

#define RF_ALPHA_DEPTH   0x100000
 

Definition at line 52 of file tr_types.h.

#define RF_DEPTHHACK   0x00008
 

Definition at line 21 of file tr_types.h.

Referenced by CG_AddViewWeapon(), and CG_TestGun_f().

#define RF_DISINTEGRATE1   0x20000
 

Definition at line 47 of file tr_types.h.

Referenced by CG_Disintegration().

#define RF_DISINTEGRATE2   0x40000
 

Definition at line 48 of file tr_types.h.

Referenced by CG_Disintegration().

#define RF_DISTORTION   0x02000
 

Definition at line 41 of file tr_types.h.

Referenced by CG_CreateDistortionTrailPart(), and CG_DrawPlayerSphere().

#define RF_FIRST_PERSON   0x00004
 

Definition at line 20 of file tr_types.h.

Referenced by CG_AddViewWeapon(), and CG_TestGun_f().

#define RF_FORCE_ENT_ALPHA   0x00400
 

Definition at line 36 of file tr_types.h.

Referenced by CG_AddFragment(), CG_CheckThirdPersonAlpha(), CG_CreateDistortionTrailPart(), CG_DrawPlayerSphere(), and CG_Player().

#define RF_FORCEPOST   0x200000
 

Definition at line 54 of file tr_types.h.

Referenced by CG_DoSaber().

#define RF_FORKED   0x04000
 

Definition at line 43 of file tr_types.h.

#define RF_GROW   0x10000
 

Definition at line 45 of file tr_types.h.

#define RF_LIGHTING_ORIGIN   0x00080
 

Definition at line 28 of file tr_types.h.

Referenced by CG_Player(), and Item_Model_Paint().

#define RF_MINLIGHT   0x00001
 

Definition at line 18 of file tr_types.h.

Referenced by CG_Player().

#define RF_NODEPTH   0x00010
 

Definition at line 22 of file tr_types.h.

Referenced by CG_Player().

#define RF_NOSHADOW   0x00040
 

Definition at line 26 of file tr_types.h.

Referenced by CG_Beam(), CG_Draw3DModel(), and Item_Model_Paint().

#define RF_RGB_TINT   0x00800
 

Definition at line 37 of file tr_types.h.

Referenced by CG_Player().

#define RF_SETANIMINDEX   0x80000
 

Definition at line 50 of file tr_types.h.

#define RF_SHADOW_ONLY   0x01000
 

Definition at line 39 of file tr_types.h.

Referenced by CG_Player().

#define RF_SHADOW_PLANE   0x00100
 

Definition at line 32 of file tr_types.h.

Referenced by CG_Player().

#define RF_TAPERED   0x08000
 

Definition at line 44 of file tr_types.h.

#define RF_THIRD_PERSON   0x00002
 

Definition at line 19 of file tr_types.h.

Referenced by CG_Bleed(), and CG_Player().

#define RF_VOLUMETRIC   0x00020
 

Definition at line 24 of file tr_types.h.

Referenced by FX_DEMP2_AltDetonate().

#define RF_WRAP_FRAMES   0x00200
 

Definition at line 33 of file tr_types.h.

#define TR_WORLDENT   (MAX_ENTITIES-1)
 

Definition at line 15 of file tr_types.h.


Typedef Documentation

typedef byte color4ub_t[4]
 

Definition at line 69 of file tr_types.h.

Referenced by trap_R_GetLightStyle().

typedef struct miniRefEntity_s miniRefEntity_t
 

typedef struct poly_s poly_t
 

typedef int stereoFrame_t
 

Definition at line 283 of file tr_types.h.

Referenced by CG_DrawActive(), and CG_DrawActiveFrame().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
STEREO_CENTER 
STEREO_LEFT 
STEREO_RIGHT 

Definition at line 278 of file tr_types.h.

00278              {
00279         STEREO_CENTER,
00280         STEREO_LEFT,
00281         STEREO_RIGHT
00282 };

enum refEntityType_t
 

Enumeration values:
RT_MODEL 
RT_POLY 
RT_SPRITE 
RT_ORIENTED_QUAD 
RT_BEAM 
RT_SABER_GLOW 
RT_ELECTRICITY 
RT_PORTALSURFACE 
RT_LINE 
RT_ORIENTEDLINE 
RT_CYLINDER 
RT_ENT_CHAIN 
RT_MAX_REF_ENTITY_TYPE 

Definition at line 83 of file tr_types.h.

00083              {
00084         RT_MODEL,
00085         RT_POLY,
00086         RT_SPRITE,
00087         RT_ORIENTED_QUAD,
00088         RT_BEAM,
00089         RT_SABER_GLOW,
00090         RT_ELECTRICITY,
00091         RT_PORTALSURFACE,               // doesn't draw anything, just info for portals
00092         RT_LINE,
00093         RT_ORIENTEDLINE,
00094         RT_CYLINDER,
00095         RT_ENT_CHAIN,
00096 
00097         RT_MAX_REF_ENTITY_TYPE
00098 } refEntityType_t;

enum textureCompression_t
 

Enumeration values:
TC_NONE 
TC_S3TC 
TC_S3TC_DXT 

Definition at line 293 of file tr_types.h.

00293              {
00294         TC_NONE,
00295         TC_S3TC,
00296         TC_S3TC_DXT
00297 } textureCompression_t;


Variable Documentation

int drawskyboxportal
 

Definition at line 67 of file tr_types.h.

int skyboxportal
 

Definition at line 66 of file tr_types.h.