Original Post
I've been making a wrapper for Direct3D for a few weeks now, but recently I ran into a problem. I changed a few things in my code and afterwards nothing would show on the window. I've been looking for the problem but I can't find it. I've tried reverting everything and rewriting some code. I think that the problem is with the matrices. I draw a couple hundred garbage triangles to the screen and all I see is one or two taking up half of the screen at seemingly random places. I've removed all of the code that deals with the matrices and replaced it with this:
D3DXMATRIX mMat;
D3DXMatrixIdentity( &mMat );
D3DXMatrixPerspectiveFovLH( &mMat, D3DX_PI/4, 1.333333333333f, 1.0f, 256.0f );
m_pD3D8Device->SetTransform( D3DTS_PROJECTION, &mMat );
but I still have the same problem.