IDirect3DSurface9* RTofBackBuffer = NULL;
V_RETURN( pd3dDevice->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(62, 62, 68), 1.0f, 0) );
V_RETURN(pd3dDevice->BeginScene());
V_RETURN( pd3dDevice->GetBackBuffer(0, 0, D3DBACKBUFFER_TYPE_MONO, &RTofBackBuffer) );
V_RETURN( pd3dDevice->StretchRect(ppSurface, NULL, RTofBackBuffer, NULL, D3DTEXF_NONE) );
V_RETURN(pd3dDevice->EndScene());
// !!!!!Finished with this back buffer it contents have been sent to the Graphic's Device
SAFE_RELEASE(RTofBackBuffer);
V_RETURN( pd3dDevice->Present(NULL, NULL, NULL, NULL) );
[Edited by - noidwright on December 10, 2010 3:30:22 PM]
Need a bit of help finding a bug
Quote:Original post by yewbiebut what does the asteric do? (I know, noob question right >_>)
IDirect3DSurface9 *surface;
IDirect3DSurface9* surface;
They function the same.
@noidwright
Although a bit puzzling for a noob like me, thank you for your feedback. Here's what I changed the notify function to:
bool V_RETURN(HRESULT hResult){ if(FAILED(hResult)){ MessageBox(hWnd,DXGetErrorDescription(hResult), DXGetErrorString(hResult), MB_OK | MB_ICONWARNING); return false; }}
I'll see if I can implement the safe release later.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement