Original Post
I get one syntax error when I try to compile my app and I dunno how to fix it please take a look at the part: This is not my full code this is just the render function that I get this one syntax error and I have tried alot of things :( Help is much appreciated. :) [Edited by - Marlow Landscape on January 12, 2005 1:55:50 PM]
/*********************************************************************
* Render 2
*********************************************************************/
void Render( )
{ //------------->219 syntax error before `{' token
IDirect3DSurface9* backbuffer = NULL; //This will hold the backbuffer
if(NULL == pd3dDevice) //Check if the Direct3D Device is valid
return false;
//clears the back buffer to a blue color
pd3dDevice->Clear( 0, NULL, D3DCLEAR_TARGET,
D3DCOLOR_XRGB( 0,0,255 ),1.0f, 0);
//Get the BackBuffer
pd3dDevice->GetBackBuffer( 0,
0,
D3DBACKBUFFER_TYPE_MONO,
&backbuffer );
//Copy the offscreen surface to the backbuffer
//Note the use of NULL values for the source and
//destination of RECTS
//This ensures a copy of the entire surface to the BackBuffer
pd3dDevice->StretchRect(bkgrd, NULL, backbuffer, NULL, D3DTEXF_NONE);
if (hResult != D3D_OK)
MessageBox(NULL,"failed", "error", MB_OK);
// Present the back buffer content to the display
pd3dDevice->Present( NULL, NULL, NULL, NULL);
}