Advertisement

Simple Drawing Text?

Started by March 14, 2000 09:43 PM
0 comments, last by Esap1 24 years, 7 months ago
I need a simple way of drawing the FPS. I tried DrawDebugText(), but it crashes the program every time. Thanks a lot.
I don''t know what DrawDebugText is, but... There are three basic ways. One is if you have some form of debug output, like a monochrome monitor, or the system debug output for a multimonitor or remote debugger, then you can draw the framerate there. But that''s not really convienient. What I would do is draw it to the game screen. There are two ways to do this, one is to flip to the GDI surface on your backbuffer, and use TextOut or DrawText to draw it. Or, you could write your own text output functions, which is what I did. It''s nice to write your own text functions, because that will help you make the game in general look better too, probably.

Good luck!

------------------------------
Jonathan Little
invader@hushmail.com
http://www.crosswinds.net/~uselessknowledge

This topic is closed to new replies.

Advertisement