Wireframe?

Mar 16, 2009 at 6:49 PM
How do set the fillmode to wireframe?  I tried to copy the DeviceRenderState, set the FillMode to Wireframe and Push it but I started getting exceptions.  Any ideas?
Mar 16, 2009 at 7:27 PM
Never mind i figured out i was not poping it, and also doing it in the wrong spot.
Coordinator
Mar 16, 2009 at 10:18 PM

Hi. Good to hear it's all sorted.

The preferred way to do this would be:

state.PushRenderState(); // saves the entire state on the stack
state.RenderState.DepthColourCull.CullMode = CullMode....;

//do your drawing

state.PopRenderState(); //reset