Page 1 of 1

[C++] SDL Newbie Question

Posted: Tue Jun 21, 2011 5:43 am
by Pornomag
Okay so after spending some time in Objective C and learning how to make apps and stuff for iOS, I found it extremely easy to log some errors in my programs.
And then coming back to SDL, I then wondered how could I do this in SDL, like display visually text if there was an error, in visual studio log messages or something like that?

Thanks in advance and sorry if I sound like an uber noob :P

Re: [C++] SDL Newbie Question

Posted: Tue Jun 21, 2011 7:07 am
by Aleios
To output to the VC++ debugger i think there is a pragma named message, i think #pragma message("BLAH") but this is only at compile time. To display text using SDL's blitting, use SDL_ttf, an extension to SDL for displaying text. Otherwise you could do some file io and write to a debug log kind of thing. (eg. "debug.txt").

Re: [C++] SDL Newbie Question

Posted: Tue Jun 21, 2011 12:16 pm
by Falco Girgis
Or just create a console project and use the standard output via printf() and cout.

Re: [C++] SDL Newbie Question

Posted: Wed Jun 22, 2011 5:44 am
by Pornomag
Thanks everyone :D