Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualErik Rufelt

Posted 08 October 2012 - 06:34 AM

Does it matter where in the rendering process i put this.. Before or after draw for example? Im out and have no access to my code right now.. will post my errors her soon.


The FW1_RESTORESTATE option must be used in every call to DrawString, to keep the context states unchanged after the draw is complete.

If you mean text rendering, it depends on where you want it. Put it last if you want the text on top of everything else. If you want to draw the text with depth-testing or otherwise modify the rendering, that requires some additional flags and manual setting of states.

#1Erik Rufelt

Posted 08 October 2012 - 06:33 AM

Does it matter where in the rendering process i put this.. Before or after draw for example? Im out and have no access to my code right now.. will post my errors her soon.


The FW1_RESTORESTATE option must be used in every call to DrawString, to keep the context states unchanged after the draw is complete.

If you mean text rendering, it depends on where you want it. Put it last if you want the text on top of everything else. If you want to draw the text with depth-testing or otherwise modify the rendering, that require some additional flags and manual setting of states.

PARTNERS