Wednesday, December 23, 2009

C++ Code snippets

I said earlier that I would post some C++, so here we go.

Feel free to use my code in any way you see fit. I'd be curious to know if my code gets put to use, so leave a comment on here or something.

The following code is designed to run in a Win32 environment.

DataLogger.h / DataLogger.cpp -
Log to file - singleton class interface, various modes/levels of logging.

GameTimer.h / GameTimer.cpp -
Timer - class interface

FontPrint.h / FontPrint.cpp -
On-screen debug output - drawing implemented using abstract drawing interface. Here's the 2-bit 8x8 font I use -

And that's all I've got for now, the rest is still pretty well in active development.

No comments:

Post a Comment