Lines Matching refs:pDevice
44 LPDIRECT3DDEVICE9 pDevice = NULL; variable
101 …pDevice->CreateVertexBuffer(numVerts * sizeof(PosNormVertex), D3DUSAGE_WRITEONLY, POSNORM_FVF, D3D… in LoadModel()
142 …pDevice->CreateIndexBuffer(idxSize, D3DUSAGE_WRITEONLY, D3DFMT_INDEX32, D3DPOOL_MANAGED, &indexBuf… in LoadModel()
168 …pDevice->CreateTexture(width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, … in InitGlobals()
171 …pDevice->CreateTexture(width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A16B16G16R16F, D3DPOOL_DEFA… in InitGlobals()
174 …pDevice->CreateTexture(width, height, 1, D3DUSAGE_RENDERTARGET, D3DFMT_A16B16G16R16F, D3DPOOL_DEFA… in InitGlobals()
218 pDevice->SetRenderTarget(0, diffuseSurface); in SetupPass()
219 pDevice->SetRenderTarget(1, normalSurface); in SetupPass()
220 pDevice->SetRenderTarget(2, positionSurface); in SetupPass()
222 pDevice->Clear(0, NULL, D3DCLEAR_TARGET, 0x00000000, 1.0f, 0); in SetupPass()
234 pDevice->SetFVF(POSNORM_FVF); in SetupPass()
235 pDevice->SetIndices(indexBuffer); in SetupPass()
236 pDevice->SetStreamSource(0, vertexBuffer, 0, sizeof(PosNormVertex)); in SetupPass()
237 pDevice->DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0, 0, numVerts, 0, numTris); in SetupPass()
243 pDevice->SetRenderTarget(0,pBackBuffer); in SetupPass()
244 pDevice->SetRenderTarget(1,NULL); in SetupPass()
245 pDevice->SetRenderTarget(2,NULL); in SetupPass()
246 pDevice->SetRenderTarget(3,NULL); in SetupPass()
251 pDevice->Clear(0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, 0x00888888, 1.0f, 0); in LightingPass()
269 pDevice->SetFVF(POSTEX_FVF); in LightingPass()
270 pDevice->DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, posTexQuad, sizeof(PosTexVertex)); in LightingPass()
290 pDevice->Present( NULL, NULL, NULL, NULL ); in WndProc()
353 …_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_HARDWARE_VERTEXPROCESSING, &presentParameters, &pDevice); in InitDX9()
358 pDevice->GetDeviceCaps(&deviceCaps); in InitDX9()
360 D3DXCreateEffectFromFile(pDevice, "deferredTest.fx", NULL, NULL, 0, NULL, &pEffect, NULL); in InitDX9()
362 pDevice->GetRenderTarget(0, &pBackBuffer); in InitDX9()
388 if(SUCCEEDED(pDevice->BeginScene())) in WinMain()
394 pDevice->EndScene(); in WinMain()
396 pDevice->Present(NULL, NULL, NULL, NULL); in WinMain()