Lines Matching refs:mpDevice
213 COMReference<IDirect3DDevice9> getDevice() { return mpDevice; } in getDevice()
232 COMReference<IDirect3DDevice9> mpDevice; member in dxcanvas::__anon986deb980111::DXRenderModule
574 mpDevice(), in DXRenderModule()
627 if( FAILED(mpDevice->CreateVertexBuffer(sizeof(dxvertex)*maNumVertices, in DXRenderModule()
872 mpDevice=COMReference<IDirect3DDevice9>(pDevice); in createDevice()
888 mpDevice->SetRenderTarget( 0, pBackBuffer ); in createDevice()
889 mpDevice->Clear(0,NULL,D3DCLEAR_TARGET,0,1.0f,0L); in createDevice()
908 if( FAILED(mpDevice->CreateOffscreenPlainSurface( in createSystemMemorySurface()
959 hr = mpDevice->Reset(&mad3dpp); in flip()
964 if( FAILED(mpDevice->CreateVertexBuffer(sizeof(dxvertex)*maNumVertices, in flip()
1048 if(FAILED(mpDevice->CreateAdditionalSwapChain(&mad3dpp,&pSwapChain))) in resize()
1059 mpDevice->SetRenderTarget( 0, pBackBuffer ); in resize()
1060 mpDevice->Clear(0,NULL,D3DCLEAR_TARGET,0,1.0f,0L); in resize()
1225 if(FAILED(mpDevice->SetStreamSource(0,mpVertexBuffer.get(),0,nVertexStride))) in commitVertexCache()
1228 if(FAILED(mpDevice->SetFVF(D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1))) in commitVertexCache()
1231 if(FAILED(mpDevice->BeginScene())) in commitVertexCache()
1234 mbError |= FAILED(mpDevice->DrawPrimitive(D3DPT_TRIANGLELIST,maReadIndex,nNumPrimitives)); in commitVertexCache()
1235 mbError |= FAILED(mpDevice->EndScene()); in commitVertexCache()
1252 if( FAILED(mpDevice->SetRenderState(D3DRS_LIGHTING,FALSE))) in flushVertexCache()
1256 if( FAILED(mpDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,TRUE))) in flushVertexCache()
1259 mpDevice->SetSamplerState(0,D3DSAMP_MAGFILTER,D3DTEXF_LINEAR); in flushVertexCache()
1260 mpDevice->SetSamplerState(0,D3DSAMP_MINFILTER,D3DTEXF_LINEAR); in flushVertexCache()
1261 mpDevice->SetSamplerState(0,D3DSAMP_ADDRESSU ,D3DTADDRESS_CLAMP ); in flushVertexCache()
1262 mpDevice->SetSamplerState(0,D3DSAMP_ADDRESSV ,D3DTADDRESS_CLAMP ); in flushVertexCache()
1269 mpDevice->SetTextureStageState(0,D3DTSS_ALPHAOP,D3DTOP_MODULATE); in flushVertexCache()
1270 mpDevice->SetTextureStageState(0,D3DTSS_ALPHAARG1,D3DTA_TEXTURE); in flushVertexCache()
1271 mpDevice->SetTextureStageState(0,D3DTSS_ALPHAARG2,D3DTA_DIFFUSE); in flushVertexCache()
1274 if( FAILED(mpDevice->SetRenderState(D3DRS_SRCBLEND,D3DBLEND_SRCALPHA)) ) in flushVertexCache()
1278 if( FAILED(mpDevice->SetRenderState(D3DRS_DESTBLEND,D3DBLEND_INVSRCALPHA)) ) in flushVertexCache()
1284 if( FAILED(mpDevice->SetRenderState(D3DRS_CULLMODE,D3DCULL_NONE)) ) in flushVertexCache()