@@ -26,43 +26,43 @@ namespace hyper
2626 switch (texture->blend_type )
2727 {
2828 case texture::alpha_blend_type::blend:
29- this ->alpha_blend_src = D3DBLEND_SRCALPHA;
30- this ->alpha_blend_dest = D3DBLEND_INVSRCALPHA;
29+ this ->alpha_blend_src = :: D3DBLEND_SRCALPHA;
30+ this ->alpha_blend_dest = :: D3DBLEND_INVSRCALPHA;
3131 break ;
3232
3333 case texture::alpha_blend_type::additive:
34- this ->alpha_blend_src = D3DBLEND_SRCALPHA;
35- this ->alpha_blend_dest = D3DBLEND_ONE;
34+ this ->alpha_blend_src = :: D3DBLEND_SRCALPHA;
35+ this ->alpha_blend_dest = :: D3DBLEND_ONE;
3636 this ->is_additive_blend = true ;
3737 this ->colour_write_alpha = true ;
3838 break ;
3939
4040 case texture::alpha_blend_type::subtractive:
41- this ->alpha_blend_src = D3DBLEND_ZERO;
42- this ->alpha_blend_dest = D3DBLEND_INVSRCCOLOR;
41+ this ->alpha_blend_src = :: D3DBLEND_ZERO;
42+ this ->alpha_blend_dest = :: D3DBLEND_INVSRCCOLOR;
4343 break ;
4444
4545 case texture::alpha_blend_type::overbright:
46- this ->alpha_blend_src = D3DBLEND_SRCALPHA;
47- this ->alpha_blend_dest = D3DBLEND_INVSRCALPHA;
46+ this ->alpha_blend_src = :: D3DBLEND_SRCALPHA;
47+ this ->alpha_blend_dest = :: D3DBLEND_INVSRCALPHA;
4848 break ;
4949
5050 case texture::alpha_blend_type::dest_blend:
51- this ->alpha_blend_src = D3DBLEND_DESTALPHA;
52- this ->alpha_blend_dest = D3DBLEND_INVDESTALPHA;
51+ this ->alpha_blend_src = :: D3DBLEND_DESTALPHA;
52+ this ->alpha_blend_dest = :: D3DBLEND_INVDESTALPHA;
5353 break ;
5454
5555 case texture::alpha_blend_type::dest_additive:
56- this ->alpha_blend_src = D3DBLEND_DESTALPHA;
57- this ->alpha_blend_dest = D3DBLEND_ONE;
56+ this ->alpha_blend_src = :: D3DBLEND_DESTALPHA;
57+ this ->alpha_blend_dest = :: D3DBLEND_ONE;
5858 break ;
5959 }
6060 }
6161 else
6262 {
6363 this ->z_write_enabled = true ;
64- this ->alpha_blend_src = D3DBLEND_ONE;
65- this ->alpha_blend_dest = D3DBLEND_ZERO;
64+ this ->alpha_blend_src = :: D3DBLEND_ONE;
65+ this ->alpha_blend_dest = :: D3DBLEND_ZERO;
6666
6767 if (!this ->alpha_test_enabled && (texture->flags & texture::bit_flags::disable_culling) != texture::bit_flags::disable_culling)
6868 {
@@ -72,24 +72,28 @@ namespace hyper
7272
7373 if ((texture->tilable_uv & texture::tileable_type::u_mirror) == texture::tileable_type::u_mirror)
7474 {
75- this ->texture_address_u = D3DTADDRESS_MIRROR;
75+ this ->texture_address_u = :: D3DTADDRESS_MIRROR;
7676 }
7777 else
7878 {
79- this ->texture_address_u = (texture->tilable_uv & texture::tileable_type::u_repeat) == texture::tileable_type::u_repeat ? D3DTADDRESS_WRAP : D3DTADDRESS_CLAMP;
79+ this ->texture_address_u = (texture->tilable_uv & texture::tileable_type::u_repeat) == texture::tileable_type::u_repeat
80+ ? ::D3DTADDRESS_WRAP
81+ : ::D3DTADDRESS_CLAMP;
8082 }
8183
8284 if ((texture->tilable_uv & texture::tileable_type::v_mirror) == texture::tileable_type::v_mirror)
8385 {
84- this ->texture_address_v = D3DTADDRESS_MIRROR;
86+ this ->texture_address_v = :: D3DTADDRESS_MIRROR;
8587 }
8688 else
8789 {
88- this ->texture_address_v = (texture->tilable_uv & texture::tileable_type::v_repeat) == texture::tileable_type::v_repeat ? D3DTADDRESS_WRAP : D3DTADDRESS_CLAMP;
90+ this ->texture_address_v = (texture->tilable_uv & texture::tileable_type::v_repeat) == texture::tileable_type::v_repeat
91+ ? ::D3DTADDRESS_WRAP
92+ : ::D3DTADDRESS_CLAMP;
8993 }
9094
9195 this ->bias_level = texture->bias_level & 3 ;
92- this ->alpha_test_ref = 11u ; // #TODO
96+ this ->alpha_test_ref = 11u ; // #TODO ?
9397
9498 if (class_key == hashing::bin_const (" Tree Leaves" ) || class_key == hashing::bin_const (" Tree Cards" ) || class_key == hashing::bin_const (" MultiPass Blend" ))
9599 {
@@ -99,7 +103,7 @@ namespace hyper
99103
100104 bool is_barrier = class_key == hashing::bin_const (" Barrier Mask" )
101105#if defined(CHECK_BARRIER_STRINGS)
102- || ::strncmp (reinterpret_cast <const char *>(texture->name ), " SFX_TRACKBARRIER" , 16u )
106+ || ! ::strncmp (reinterpret_cast <const char *>(texture->name ), " SFX_TRACKBARRIER" , 16u )
103107#endif
104108 ;
105109
0 commit comments