@@ -110,7 +110,7 @@ class ECORE_API CBackend
110110#endif // USE_OGL
111111
112112 // Vertices/Indices/etc
113- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
113+ #ifndef USE_DX9
114114 SDeclaration* decl;
115115#else // USE_DX10
116116 IDirect3DVertexDeclaration9* decl;
@@ -151,7 +151,7 @@ class ECORE_API CBackend
151151#ifdef DEBUG
152152 LPCSTR ps_name;
153153 LPCSTR vs_name;
154- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
154+ #ifndef USE_DX9
155155 LPCSTR gs_name;
156156#ifdef USE_DX11
157157 LPCSTR hs_name;
@@ -183,7 +183,7 @@ class ECORE_API CBackend
183183 CTexture* textures_ps[CTexture::mtMaxPixelShaderTextures]; // stages
184184 // CTexture* textures_vs[5]; // dmap + 4 vs
185185 CTexture* textures_vs[CTexture::mtMaxVertexShaderTextures]; // 4 vs
186- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
186+ #ifndef USE_DX9
187187 CTexture* textures_gs[CTexture::mtMaxGeometryShaderTextures]; // 4 vs
188188# ifdef USE_DX11
189189 CTexture* textures_hs[CTexture::mtMaxHullShaderTextures]; // 4 vs
@@ -303,7 +303,7 @@ class ECORE_API CBackend
303303 ICF void set_States (SState* _state);
304304 ICF void set_States (ref_state& _state) { set_States (&*_state); }
305305
306- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
306+ #ifndef USE_DX9
307307 ICF void set_Format (SDeclaration* _decl);
308308#else // USE_DX10
309309 ICF void set_Format (IDirect3DVertexDeclaration9* _decl);
@@ -316,7 +316,7 @@ class ECORE_API CBackend
316316#endif // USE_OGL
317317 ICF void set_PS (ref_ps& _ps) { set_PS (_ps->sh , _ps->cName .c_str ()); }
318318
319- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
319+ #ifndef USE_DX9
320320#ifdef USE_OGL
321321 ICF void set_GS (GLuint _gs, LPCSTR _n = 0 );
322322#else
@@ -431,7 +431,7 @@ class ECORE_API CBackend
431431 constants.seta (C, e, x, y, z, w);
432432 }
433433
434- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
434+ #ifndef USE_DX9
435435 ICF void set_c (R_constant* C, float A)
436436 {
437437 if (C)
@@ -483,7 +483,7 @@ class ECORE_API CBackend
483483 set_ca (&*ctable->get (n), e, x, y, z, w);
484484 }
485485
486- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
486+ #ifndef USE_DX9
487487 ICF void set_c (LPCSTR n, float A)
488488 {
489489 if (ctable)
@@ -534,7 +534,7 @@ class ECORE_API CBackend
534534 set_ca (&*ctable->get (n), e, x, y, z, w);
535535 }
536536
537- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
537+ #ifndef USE_DX9
538538 ICF void set_c (shared_str& n, float A)
539539 {
540540 if (ctable)
@@ -566,7 +566,7 @@ class ECORE_API CBackend
566566 // Debug render
567567 void dbg_DP (D3DPRIMITIVETYPE pt, ref_geom geom, u32 vBase, u32 pc);
568568 void dbg_DIP (D3DPRIMITIVETYPE pt, ref_geom geom, u32 baseV, u32 startV, u32 countV, u32 startI, u32 PC);
569- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
569+ #ifndef USE_DX9
570570 // TODO: DX10: Implement this.
571571 IC void dbg_SetRS (D3DRENDERSTATETYPE p1, u32 p2) { VERIFY (!" Not implemented" ); }
572572 IC void dbg_SetSS (u32 sampler, D3DSAMPLERSTATETYPE type, u32 value) { VERIFY (!" Not implemented" ); }
0 commit comments