comparison Render.cpp @ 33:a9e9c6989d04

20.01.13
author Ritor1
date Sun, 20 Jan 2013 18:57:23 +0600
parents 8e33efd39355
children aac67e0d2c10
comparison
equal deleted inserted replaced
32:4c90ae1041aa 33:a9e9c6989d04
7081 return; 7081 return;
7082 7082
7083 if (pRenderD3D) 7083 if (pRenderD3D)
7084 { 7084 {
7085 pGame->draw_debug_outlines(); 7085 pGame->draw_debug_outlines();
7086 //DoRenderBillboards_D3D(); Ritor1: it's temporarily 7086 //DoRenderBillboards_D3D(); //Ritor1: it's temporarily
7087 pGame->pStru6Instance->RenderSpecialEffects(); 7087 pGame->pStru6Instance->RenderSpecialEffects();
7088 pRenderD3D->pDevice->EndScene(); 7088 pRenderD3D->pDevice->EndScene();
7089 } 7089 }
7090 else 7090 else
7091 pGame->pStru6Instance->RenderSpecialEffects(); 7091 pGame->pStru6Instance->RenderSpecialEffects();
11094 auto p = pRenderer->pBillboardRenderListD3D + i; 11094 auto p = pRenderer->pBillboardRenderListD3D + i;
11095 11095
11096 if (p->uOpacity != RenderBillboardD3D::InvalidOpacity) 11096 if (p->uOpacity != RenderBillboardD3D::InvalidOpacity)
11097 SetBillboardBlendOptions(p->uOpacity); 11097 SetBillboardBlendOptions(p->uOpacity);
11098 11098
11099 ErrD3D(pRenderer->pRenderD3D->pDevice->SetTexture(0, p->pTexture)); 11099 //ErrD3D(pRenderer->pRenderD3D->pDevice->SetTexture(0, p->pTexture));
11100 ErrD3D(pRenderer->pRenderD3D->pDevice->DrawPrimitive(D3DPT_TRIANGLEFAN, D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | D3DFVF_TEX1, 11100 ErrD3D(pRenderer->pRenderD3D->pDevice->DrawPrimitive(D3DPT_TRIANGLEFAN, D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_SPECULAR | D3DFVF_TEX1,
11101 p->pQuards, p->uNumVertices, D3DDP_DONOTLIGHT | D3DDP_DONOTUPDATEEXTENTS)); 11101 p->pQuards, p->uNumVertices, D3DDP_DONOTLIGHT | D3DDP_DONOTUPDATEEXTENTS));
11102 } 11102 }
11103 11103
11104 if (pRenderer->bFogEnabled) 11104 if (pRenderer->bFogEnabled)