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