Libprimis
Imprimis' 3D destroyable world engine
Loading...
Searching...
No Matches
consts.h File Reference

Useful egnine constants. More...

Go to the source code of this file.

Macros

#define IS_LIQUID(mat)
 
#define IS_CLIPPED(mat)
 

Enumerations

enum  {
  SCR_MINW = 320 , SCR_MINH = 200 , SCR_MAXW = 16384 , SCR_MAXH = 16384 ,
  SCR_DEFAULTW = 1366 , SCR_DEFAULTH = 768
}
 
enum  { Default_Sky = 0 , Default_Geom , Default_NumDefaults }
 
enum  {
  MatFlag_IndexShift = 0 , MatFlag_VolumeShift = 2 , MatFlag_ClipShift = 5 , MatFlag_FlagShift = 8 ,
  MatFlag_Index = 3 << MatFlag_IndexShift , MatFlag_Volume = 7 << MatFlag_VolumeShift , MatFlag_Clip = 7 << MatFlag_ClipShift , MatFlag_Flags = 0xFF << MatFlag_FlagShift
}
 
enum  {
  Ray_BB = 1 , Ray_Poly = 3 , Ray_AlphaPoly = 7 , Ray_Ents = 9 ,
  Ray_ClipMat = 16 , Ray_SkipFirst = 32 , Ray_EditMat = 64 , Ray_Shadow = 128 ,
  Ray_Pass = 256 , Ray_SkipSky = 512
}
 
enum  {
  Mat_Air = 0 , Mat_Water = 1 << MatFlag_VolumeShift , Mat_Glass = 3 << MatFlag_VolumeShift , Mat_NoClip = 1 << MatFlag_ClipShift ,
  Mat_Clip = 2 << MatFlag_ClipShift , Mat_GameClip = 3 << MatFlag_ClipShift , Mat_Death = 1 << MatFlag_FlagShift , Mat_Alpha = 4 << MatFlag_FlagShift
}
 
enum  {
  Console_Info = 1<<0 , Console_Warn = 1<<1 , Console_Error = 1<<2 , Console_Debug = 1<<3 ,
  Console_Init = 1<<4 , Console_Echo = 1<<5
}
 
enum  { KeyRepeat_Console = 1<<0 , KeyRepeat_GUI = 1<<1 , KeyRepeat_EditMode = 1<<2 }
 
enum  { LightEnt_NoShadow = 1<<0 , LightEnt_Static = 1<<1 , LightEnt_Volumetric = 1<<2 , LightEnt_NoSpecular = 1<<3 }
 
enum  { DynLight_Shrink = 1<<8 , DynLight_Expand = 1<<9 , DynLight_Flash = 1<<10 }
 
enum  { EditMatFlag_Empty = 0x10000 , EditMatFlag_NotEmpty = 0x20000 , EditMatFlag_Solid = 0x30000 , EditMatFlag_NotSolid = 0x40000 }
 
enum  {
  Part_Blood = 0 , Part_Water , Part_Smoke , Part_Steam ,
  Part_Flame , Part_Streak , Part_RailTrail , Part_PulseSide ,
  Part_PulseFront , Part_Explosion , Part_PulseBurst , Part_Spark ,
  Part_Edit , Part_Snow , Part_RailMuzzleFlash , Part_PulseMuzzleFlash ,
  Part_HUDIcon , Part_HUDIconGrey , Part_Text , Part_Meter ,
  Part_MeterVS
}
 
enum  {
  Stain_Blood = 0 , Stain_PulseScorch , Stain_RailHole , Stain_PulseGlow ,
  Stain_RailGlow
}
 
enum  {
  Model_CullVFC = 1<<0 , Model_CullDist = 1<<1 , Model_CullOccluded = 1<<2 , Model_CullQuery = 1<<3 ,
  Model_FullBright = 1<<4 , Model_NoRender = 1<<5 , Model_Mapmodel = 1<<6 , Model_NoBatch = 1<<7 ,
  Model_OnlyShadow = 1<<8 , Model_NoShadow = 1<<9 , Model_ForceShadow = 1<<10 , Model_ForceTransparent = 1<<11
}
 
enum  { Music_Map = 1<<0 , Music_NoAlt = 1<<1 , Music_UseAlt = 1<<2 }
 
enum  { Init_Not = 0 , Init_Game , Init_Load , Init_Reset }
 

Detailed Description

Useful egnine constants.

This is a header filled with constants that are useful to pass appropriate information from the game to the engine; howerver, it is only for those constants which are directly useful for the engine-game interface and not for constants which solely lie in the engine or game.

Macro Definition Documentation

◆ IS_CLIPPED

#define IS_CLIPPED ( mat)
Value:
((mat)==Mat_Glass)

◆ IS_LIQUID

#define IS_LIQUID ( mat)
Value:
((mat)==Mat_Water)