thumbtacks2 wrote:
But I thought a window "handle" was more or less just a
integer value (?) pointer. But yes, I have crashed things more than once with complicated image manipulations in PaintshopPro. I do know that using GDI to render things like text in video game is a lot slower than using something like DirectX or OpenGL. I'm also running into more than one book that tells me to "make my own fonts" rather than using anything GDI related.
Here's why GDI font is not an issue in games. At the game start-up, you use GDI to render all the glyphs you need to a texture, then at game run-time, you render your text out of that texture.
You take no performance hit & GDI is fast enough at start-up time that it's really insignificant.
This is how font works in the DirectX SDK, and how it will work in XNA. It's just plain 'ol GDI.
There are a couple of people out there that are actually converting TTF into real 3D objects for XNA though.