my system:
linux debian7 32bit (C language not C++)
After dozens of tutorial sites, I think this font string should work, yet it will not.
I don't get any terminal errors and I can not open it.
Could you please fix my code.
I'm a struggling noob,
Please help me.
Code:
/* gcc myFont.c -l glut -o myFont */
#include <GL/glut.h>
void display()
{
glClearColor(0.8, 0.8, 0.8, 0.0); // gray background
glClear( GL_COLOR_BUFFER_BIT );
glColor3f(0.0, 0.0, 0.0); // black text
glutBitmapString(GLUT_BITMAP_HELVETICA_18, 10, 10, "HELLO TODAY");
glFlush();
}
int main( int argc, char **argv )
{
glutInit( &argc, argv );
glutInitWindowSize( 200,200 );
glutInitWindowPosition (100, 100);
glutCreateWindow( "myFont" );
glutDisplayFunc( display );
glutMainLoop();
return 0;
}