/***************************************************************************/
/*                                                                         */
/* File: game.cpp                                                          */
/*                                                                         */
/***************************************************************************/

#include <d3dx8.h>
#include <d3d8.h>

// Well if we need to do any drawing or rendering triangles we can do it in here!
void Render()
{
	if(!g_pD3DDevice)return;

	// Clear the back buffer to a blue color
	g_pD3DDevice->Clear( 0, NULL, D3DCLEAR_TARGET|D3DCLEAR_ZBUFFER, D3DCOLOR_XRGB(0,0,255), 1.0f, 0 );

	// After rendering the scene we display it.
	g_pD3DDevice->Present( NULL, NULL, NULL, NULL );
}

void mainloop()
{
	Render();
}