I thought I would make this general purpose class which spawns a console window along side your main app window, and you can send text output to the window, so it is useful for debugging. You can also use a getInput() method on it which will cause your DBP app to hang until something is typed in the console window and you press enter.
Here is a usage example:
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
#include "boom_console.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
initialiseBoomConsole();
console->open();
console->printLine("rawr");
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Any bugs/suggestions/critiques? Post away!
TheSturgeon(playing me at chess) : I will use my powers of the horse and pwnzor you.