Re: [Dev-C++] displaying text and opengl window simultaneously
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Neszt T. <ne...@ss...> - 2003-10-03 10:31:32
|
Hello!
> I am new to Dev-cpp. Actually just started 2 days back. I am trying to
> run an opengl program from Dev-cpp as a console window. Along with the
> opengl program, I also have some "printf" statements based on certain
> actions happening in opengl window. Now the problem is I cant figure out
> where the text with the "printf" command is being printed out.
> .
> .
> .
If You are debugging Your program, You can execute:
yourprogram.exe > debug.txt
and the printf output will be stored to the debug.txt file.
Another way to write an opengl function, to display your txt on the opengl
screen. Like this:
void txtout(char *txt) {
int i;
for (i=0 ; txt[i]!='\0' ; i++) {
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_10, txt[i]);
}
}
Regards,
Neszt Tibor
|