DX7 changes

Started by
0 comments, last by Pseudo 24 years, 6 months ago
I've just gotten around to porting my dx6 code to dx7 Im having problems with a few things. For one, triangles rendered with D3DLVERTEX will only be drawn with the color black. Before I would set the vertex color and the specualar to D3DRGB(1,1,1) and it would work. now it draws it in black nomatter what color or spec. i choose. Anyone else have this prob?
Advertisement
Well, 3 seconds after posting I found the answer. Here is the solution, just in case anyone else has the same prob. Microsoft changed DrawPrimitive so it doesn't take all the flags, and replaced them with RenderStates. All I had to do was add:
lpD3DDevice->SetRenderState(D3DRENDERSTATE_LIGHTING,FALSE);
and it worked.

This topic is closed to new replies.

Advertisement