glutBitmapCharacter does not work alone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freeglut (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The following little program illustrates the problem:
#include <GL/glut.h>
void draw() {
glClearColor(0, 0, 0, 1);
glClear(
// Every matrix is identitiy at this point...
glColor3f(1, 1, 1);
glRasterPos2f(0, 0.1);
glutBitmapCha
/* glBegin(GL_LINES);
glVertex2f(0, 0);
glVertex2f(1, 0);
glEnd();*/
glFlush();
}
int main(int args, char** argv) {
glutInit(&args, argv);
glutInitDispl
glutCreateWin
glutDisplayFu
glutMainLoop();
return 0;
}
Compiled with:
gcc demo.c -o demo -lGL -lGLU -lglut
If executed it should show "1" but it does not. Only if uncommenting the drawing instructions for the following line it works. Generally, the function glutbitmapoChar