Original Post
i dont know about all of you but i dont see any improvement in the way the code was organized into classes. Having so many classes doesnt make the code more readable, quite the oposite if you ask me. Its not that i dont like OO but this is a little to extreme.
DrawScene is a time critical function and having a method only to have it call another method and nothing else isnt a good idea really.
void CDirect3D::Clear(DWORD dwColor)
{
pDevice->Clear( 0, NULL, D3DCLEAR_TARGET, dwColor, 1.0f, 0 );
}
void CDirect3D::Present()
{
pDevice->Present(NULL, NULL, NULL, NULL);
}
void CDirect3D::BeginScene()
{
pDevice->BeginScene();
}
void CDirect3D::EndScene()
{
pDevice->EndScene();
}
|