diff ParticleEngine.cpp @ 2155:0a1438c16c2b

Render decoupling.
author Nomad
date Thu, 09 Jan 2014 17:29:17 +0200
parents 9bd7522cdbbb
children ff8920a40c21
line wrap: on
line diff
--- a/ParticleEngine.cpp	Thu Jan 09 14:36:48 2014 +0200
+++ b/ParticleEngine.cpp	Thu Jan 09 17:29:17 2014 +0200
@@ -144,13 +144,14 @@
   {
     if (pLines.uNumLines)
     {
-      pRenderer->pRenderD3D->pDevice->SetTexture(0, 0);
+      pRenderer->DrawLines(pLines.pLineVertices, pLines.uNumLines);
+      /*pRenderer->pRenderD3D->pDevice->SetTexture(0, 0);
       pRenderer->pRenderD3D->pDevice->DrawPrimitive(
         D3DPT_LINELIST,
         D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | D3DFVF_TEX1,
         pLines.pLineVertices,
         pLines.uNumLines,
-        D3DDP_DONOTLIGHT);
+        D3DDP_DONOTLIGHT);*/
     }
   }
 }
@@ -649,10 +650,10 @@
         p->uScreenSpaceY >= pBLVRenderParams->uViewportY &&
         p->uScreenSpaceY < pBLVRenderParams->uViewportW)
     {
-      if (!pRenderer->pRenderD3D)
+      /*if (!pRenderer->pRenderD3D)
       {
         __debugbreak();
-                    /*v11 = 13 * p->_screenspace_scale >> 16;
+                    v11 = 13 * p->_screenspace_scale >> 16;
                      if ( v11 > 30 )
                        v11 = 30;
                     v12 = p->uScreenSpaceY - v11;
@@ -667,9 +668,9 @@
                      else
                      {
                        pRenderer->MakeParticleBillboardAndPush_BLV_Software(v13, v12, p->sZValue, p->uLightColor_bgr, v11);
-                     }*/
+                     }
       }
-      //else
+      else*/
 
         if (p->type & ParticleType_Diffuse)
         {