Skip to content

Commit 72688e8

Browse files
committed
Renderers: BOOLs changed to bools
1 parent 6efa117 commit 72688e8

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

src/Layers/xrRenderPC_R2/r2_rendertarget.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ class CRenderTarget : public IRender_Target
197197
u32 W, u32 H, IDirect3DSurface9* _1, IDirect3DSurface9* _2, IDirect3DSurface9* _3, IDirect3DSurface9* zb);
198198
void u_calc_tc_noise(Fvector2& p0, Fvector2& p1);
199199
void u_calc_tc_duality_ss(Fvector2& r0, Fvector2& r1, Fvector2& l0, Fvector2& l1);
200-
BOOL u_need_PP();
200+
bool u_need_PP();
201201
bool u_need_CM();
202-
BOOL u_DBT_enable(float zMin, float zMax);
202+
bool u_DBT_enable(float zMin, float zMax);
203203
void u_DBT_disable();
204204

205205
void phase_ssao();
@@ -220,7 +220,7 @@ class CRenderTarget : public IRender_Target
220220

221221
bool need_to_render_sunshafts();
222222

223-
BOOL enable_scissor(light* L); // true if intersects near plane
223+
bool enable_scissor(light* L); // true if intersects near plane
224224
void enable_dbt_bounds(light* L);
225225

226226
void disable_aniso();

src/Layers/xrRenderPC_R2/r2_rendertarget_enable_scissor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// extern Fvector du_cone_vertices [DU_CONE_NUMVERTEX];
66

7-
BOOL tri_vs_sphere_intersect(Fvector& SC, float R, Fvector& v0, Fvector& v1, Fvector& v2)
7+
bool tri_vs_sphere_intersect(Fvector& SC, float R, Fvector& v0, Fvector& v1, Fvector& v2)
88
{
99
Fvector e0, e1;
1010
return CDB::TestSphereTri(SC, R, v0, e0.sub(v1, v0), e1.sub(v2, v0));
@@ -41,7 +41,7 @@ void CRenderTarget::enable_dbt_bounds(light* L)
4141
}
4242

4343
// nv-DBT
44-
BOOL CRenderTarget::u_DBT_enable(float zMin, float zMax)
44+
bool CRenderTarget::u_DBT_enable(float zMin, float zMax)
4545
{
4646
if (!RImplementation.o.nvdbt)
4747
return FALSE;
@@ -62,7 +62,7 @@ void CRenderTarget::u_DBT_disable()
6262
HW.pDevice->SetRenderState(D3DRS_ADAPTIVETESS_X, 0);
6363
}
6464

65-
BOOL CRenderTarget::enable_scissor(light* L) // true if intersects near plane
65+
bool CRenderTarget::enable_scissor(light* L) // true if intersects near plane
6666
{
6767
// Msg ("%d: %x type(%d), pos(%f,%f,%f)",Device.dwFrame,u32(L),u32(L->flags.type),VPUSH(L->position));
6868

src/Layers/xrRenderPC_R2/r2_rendertarget_phase_PP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void CRenderTarget::u_calc_tc_duality_ss(Fvector2& r0, Fvector2& r1, Fvector2& l
5858
l1.set(p1.x, p1.y);
5959
}
6060

61-
BOOL CRenderTarget::u_need_PP()
61+
bool CRenderTarget::u_need_PP()
6262
{
6363
bool _blur = (param_blur > 0.001f);
6464
bool _gray = (param_gray > 0.001f);

src/Layers/xrRenderPC_R3/r3_rendertarget.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ class CRenderTarget : public IRender_Target
242242
ID3DDepthStencilView* zb);
243243
void u_calc_tc_noise(Fvector2& p0, Fvector2& p1);
244244
void u_calc_tc_duality_ss(Fvector2& r0, Fvector2& r1, Fvector2& l0, Fvector2& l1);
245-
BOOL u_need_PP();
245+
bool u_need_PP();
246246
bool u_need_CM();
247-
BOOL u_DBT_enable(float zMin, float zMax);
247+
bool u_DBT_enable(float zMin, float zMax);
248248
void u_DBT_disable();
249249

250250
void phase_scene_prepare();
@@ -274,7 +274,7 @@ class CRenderTarget : public IRender_Target
274274
bool need_to_render_sunshafts();
275275
bool use_minmax_sm_this_frame();
276276

277-
BOOL enable_scissor(light* L); // true if intersects near plane
277+
bool enable_scissor(light* L); // true if intersects near plane
278278
void enable_dbt_bounds(light* L);
279279

280280
void disable_aniso();

src/Layers/xrRenderPC_R3/r3_rendertarget_enable_scissor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// extern Fvector du_cone_vertices [DU_CONE_NUMVERTEX];
66

7-
BOOL tri_vs_sphere_intersect(Fvector& SC, float R, Fvector& v0, Fvector& v1, Fvector& v2)
7+
bool tri_vs_sphere_intersect(Fvector& SC, float R, Fvector& v0, Fvector& v1, Fvector& v2)
88
{
99
Fvector e0, e1;
1010
return CDB::TestSphereTri(SC, R, v0, e0.sub(v1, v0), e1.sub(v2, v0));
@@ -41,7 +41,7 @@ void CRenderTarget::enable_dbt_bounds(light* L)
4141
}
4242

4343
// nv-DBT
44-
BOOL CRenderTarget::u_DBT_enable(float /*zMin*/, float /*zMax*/)
44+
bool CRenderTarget::u_DBT_enable(float /*zMin*/, float /*zMax*/)
4545
{
4646
if (!RImplementation.o.nvdbt)
4747
return false;
@@ -66,7 +66,7 @@ void CRenderTarget::u_DBT_disable()
6666
// HW.pDevice->SetRenderState(D3DRS_ADAPTIVETESS_X,0);
6767
}
6868

69-
BOOL CRenderTarget::enable_scissor(light* L) // true if intersects near plane
69+
bool CRenderTarget::enable_scissor(light* L) // true if intersects near plane
7070
{
7171
// Msg ("%d: %x type(%d), pos(%f,%f,%f)",Device.dwFrame,u32(L),u32(L->flags.type),VPUSH(L->position));
7272

src/Layers/xrRenderPC_R3/r3_rendertarget_phase_PP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void CRenderTarget::u_calc_tc_duality_ss(Fvector2& r0, Fvector2& r1, Fvector2& l
5858
l1.set(p1.x, p1.y);
5959
}
6060

61-
BOOL CRenderTarget::u_need_PP()
61+
bool CRenderTarget::u_need_PP()
6262
{
6363
bool _blur = param_blur > 0.001f;
6464
bool _gray = param_gray > 0.001f;

src/Layers/xrRenderPC_R4/r4_rendertarget.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ class CRenderTarget : public IRender_Target
250250
ID3DDepthStencilView* zb);
251251
void u_calc_tc_noise(Fvector2& p0, Fvector2& p1);
252252
void u_calc_tc_duality_ss(Fvector2& r0, Fvector2& r1, Fvector2& l0, Fvector2& l1);
253-
BOOL u_need_PP();
253+
bool u_need_PP();
254254
bool u_need_CM();
255-
BOOL u_DBT_enable(float zMin, float zMax);
255+
bool u_DBT_enable(float zMin, float zMax);
256256
void u_DBT_disable();
257257

258258
void phase_scene_prepare();
@@ -283,7 +283,7 @@ class CRenderTarget : public IRender_Target
283283
bool need_to_render_sunshafts();
284284
bool use_minmax_sm_this_frame();
285285

286-
BOOL enable_scissor(light* L); // true if intersects near plane
286+
bool enable_scissor(light* L); // true if intersects near plane
287287
void enable_dbt_bounds(light* L);
288288

289289
void disable_aniso();

src/Layers/xrRenderPC_R4/r4_rendertarget_enable_scissor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// extern Fvector du_cone_vertices [DU_CONE_NUMVERTEX];
66

7-
BOOL tri_vs_sphere_intersect(Fvector& SC, float R, Fvector& v0, Fvector& v1, Fvector& v2)
7+
bool tri_vs_sphere_intersect(Fvector& SC, float R, Fvector& v0, Fvector& v1, Fvector& v2)
88
{
99
Fvector e0, e1;
1010
return CDB::TestSphereTri(SC, R, v0, e0.sub(v1, v0), e1.sub(v2, v0));
@@ -41,7 +41,7 @@ void CRenderTarget::enable_dbt_bounds(light* L)
4141
}
4242

4343
// nv-DBT
44-
BOOL CRenderTarget::u_DBT_enable(float /*zMin*/, float /*zMax*/)
44+
bool CRenderTarget::u_DBT_enable(float /*zMin*/, float /*zMax*/)
4545
{
4646
if (!RImplementation.o.nvdbt)
4747
return FALSE;
@@ -66,7 +66,7 @@ void CRenderTarget::u_DBT_disable()
6666
// HW.pDevice->SetRenderState(D3DRS_ADAPTIVETESS_X,0);
6767
}
6868

69-
BOOL CRenderTarget::enable_scissor(light* L) // true if intersects near plane
69+
bool CRenderTarget::enable_scissor(light* L) // true if intersects near plane
7070
{
7171
// Msg ("%d: %x type(%d), pos(%f,%f,%f)",Device.dwFrame,u32(L),u32(L->flags.type),VPUSH(L->position));
7272

src/Layers/xrRenderPC_R4/r4_rendertarget_phase_PP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void CRenderTarget::u_calc_tc_duality_ss(Fvector2& r0, Fvector2& r1, Fvector2& l
5858
l1.set(p1.x, p1.y);
5959
}
6060

61-
BOOL CRenderTarget::u_need_PP()
61+
bool CRenderTarget::u_need_PP()
6262
{
6363
bool _blur = (param_blur > 0.001f);
6464
bool _gray = (param_gray > 0.001f);

0 commit comments

Comments
 (0)