Re: XNA Game Studio Express 2d resets with nuclex fonts?
sugrhigh
heres my draw method... i think thats all thats relevant
protected override void Draw(GameTime gameTime)
{
graphics.GraphicsDevice.RenderState.StencilEnable = true;
graphics.GraphicsDevice.Clear(Color.CornflowerBlue);
mLoader.DrawModel(tank, tankposition, camera.projectionMatrix, camera.viewMatrix);
framerate.Draw();
#region 2D Resets
graphics.GraphicsDevice.RenderState.DepthBufferEnable = true;
graphics.GraphicsDevice.RenderState.AlphaBlendEnable = false;
graphics.GraphicsDevice.RenderState.AlphaTestEnable = false;
graphics.GraphicsDevice.SamplerStates[0].AddressU = TextureAddressMode.Wrap;
graphics.GraphicsDevice.SamplerStates[0].AddressV = TextureAddressMode.Wrap;
graphics.GraphicsDevice.RenderState.StencilEnable = true;
//graphics.GraphicsDevice.RenderState.CullMode = CullMode;
#endregion
base.Draw(gameTime);
}