Subversion Repositories Games.Carmageddon

Rev

Rev 1 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _DEPTH_H_
  2. #define _DEPTH_H_
  3.  
  4. #include "dr_types.h"
  5.  
  6. extern tDepth_effect gDistance_depth_effects[4];
  7. extern int gSky_on;
  8. extern int gDepth_cueing_on;
  9. extern tDepth_effect_type gSwap_depth_effect_type;
  10. extern br_scalar gSky_height;
  11. extern br_scalar gSky_x_multiplier;
  12. extern br_scalar gSky_width;
  13. extern br_scalar gSky_y_multiplier;
  14. extern tU32 gLast_depth_change;
  15. extern br_scalar gOld_yon;
  16. extern br_pixelmap* gWater_shade_table;
  17. extern br_material* gHorizon_material;
  18. extern br_model* gRearview_sky_model;
  19. extern int gFog_shade_table_power;
  20. extern br_actor* gRearview_sky_actor;
  21. extern int gAcid_shade_table_power;
  22. extern int gWater_shade_table_power;
  23. extern br_model* gForward_sky_model;
  24. extern br_actor* gForward_sky_actor;
  25. extern int gDepth_shade_table_power;
  26. extern br_pixelmap* gFog_shade_table;
  27. extern int gSwap_depth_effect_start;
  28. extern br_pixelmap* gDepth_shade_table;
  29. extern tSpecial_volume* gLast_camera_special_volume;
  30. extern br_pixelmap* gAcid_shade_table;
  31. extern int gSwap_depth_effect_end;
  32. extern br_pixelmap* gSwap_sky_texture;
  33. extern br_angle gOld_fov;
  34. extern br_angle gSky_image_width;
  35. extern br_angle gSky_image_height;
  36. extern br_angle gSky_image_underground;
  37.  
  38. int Log2(int pNumber);
  39.  
  40. br_scalar CalculateWrappingMultiplier(br_scalar pValue, br_scalar pYon);
  41.  
  42. br_scalar DepthCueingShiftToDistance(int pShift);
  43.  
  44. void FogAccordingToGPSCDE(br_material* pMaterial);
  45.  
  46. void FrobFog(void);
  47.  
  48. void InstantDepthChange(tDepth_effect_type pType, br_pixelmap* pSky_texture, int pStart, int pEnd);
  49.  
  50. br_scalar Tan(br_scalar pAngle);
  51.  
  52. br_scalar EdgeU(br_angle pSky, br_angle pView, br_angle pPerfect);
  53.  
  54. void MungeSkyModel(br_actor* pCamera, br_model* pModel);
  55.  
  56. br_model* CreateHorizonModel(br_actor* pCamera);
  57.  
  58. void LoadDepthTable(char* pName, br_pixelmap** pTable, int* pPower);
  59.  
  60. void InitDepthEffects(void);
  61.  
  62. void DoDepthByShadeTable(br_pixelmap* pRender_buffer, br_pixelmap* pDepth_buffer, br_pixelmap* pShade_table, int pShade_table_power, int pStart, int pEnd);
  63.  
  64. void ExternalSky(br_pixelmap* pRender_buffer, br_pixelmap* pDepth_buffer, br_actor* pCamera, br_matrix34* pCamera_to_world);
  65.  
  66. void DoHorizon(br_pixelmap* pRender_buffer, br_pixelmap* pDepth_buffer, br_actor* pCamera, br_matrix34* pCamera_to_world);
  67.  
  68. void DoDepthCue(br_pixelmap* pRender_buffer, br_pixelmap* pDepth_buffer);
  69.  
  70. void DoFog(br_pixelmap* pRender_buffer, br_pixelmap* pDepth_buffer);
  71.  
  72. void DepthEffect(br_pixelmap* pRender_buffer, br_pixelmap* pDepth_buffer, br_actor* pCamera, br_matrix34* pCamera_to_world);
  73.  
  74. void DepthEffectSky(br_pixelmap* pRender_buffer, br_pixelmap* pDepth_buffer, br_actor* pCamera, br_matrix34* pCamera_to_world);
  75.  
  76. void DoWobbleCamera(br_actor* pCamera);
  77.  
  78. void DoDrugWobbleCamera(br_actor* pCamera);
  79.  
  80. void DoSpecialCameraEffect(br_actor* pCamera, br_matrix34* pCamera_to_world);
  81.  
  82. void LessDepthFactor(void);
  83.  
  84. void MoreDepthFactor(void);
  85.  
  86. void LessDepthFactor2(void);
  87.  
  88. void MoreDepthFactor2(void);
  89.  
  90. void AssertYons(void);
  91.  
  92. void IncreaseYon(void);
  93.  
  94. void DecreaseYon(void);
  95.  
  96. void SetYon(br_scalar pYon);
  97.  
  98. br_scalar GetYon(void);
  99.  
  100. void IncreaseAngle(void);
  101.  
  102. void DecreaseAngle(void);
  103.  
  104. void ToggleDepthMode(void);
  105.  
  106. int GetSkyTextureOn(void);
  107.  
  108. void SetSkyTextureOn(int pOn);
  109.  
  110. void ToggleSkyQuietly(void);
  111.  
  112. void ToggleSky(void);
  113.  
  114. int GetDepthCueingOn(void);
  115.  
  116. void SetDepthCueingOn(int pOn);
  117.  
  118. void ToggleDepthCueingQuietly(void);
  119.  
  120. void ToggleDepthCueing(void);
  121.  
  122. void ChangeDepthEffect(void);
  123.  
  124. void MungeForwardSky(void);
  125.  
  126. void MungeRearviewSky(void);
  127.  
  128. #endif
  129.