VOID Render()
{
if( NULL == g_pd3dDevice )
return;
// Clear the backbuffer to a blue color
g_pd3dDevice->Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,0,255), 1.0f, 0 );
// Begin the scene
if( SUCCEEDED( g_pd3dDevice->BeginScene() ) )
{
LPD3DXLINE line;
D3DXCreateLine(g_pd3dDevice, &line);
D3DXVECTOR2 lines[] = {D3DXVECTOR2(0.0f, 50.0f), D3DXVECTOR2(400.0f, 50.0f)};
line->Begin();
line->Draw(lines, 2, 0xFFFFFFFF);
line->End();
line->Release();
// End the scene
g_pd3dDevice->EndScene();
}
// Present the backbuffer contents to the display
g_pd3dDevice->Present( NULL, NULL, NULL, NULL );
}