Fix hello_world

This commit is contained in:
Andre Meyering 2018-10-17 15:08:44 +02:00
parent 4c8461f62a
commit ec4663e293
3 changed files with 6 additions and 6 deletions

View file

@ -17,15 +17,14 @@ void init(int argc, char** argv)
glLoadIdentity();
gluOrtho2D(0, width, 0, height);
glMatrixMode(GL_MODELVIEW);
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
}
void display(void)
{
const char* myText = "Hello World!";
char* myText = "Hello World!";
int j;
glClear(GL_COLOR);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0, 0.0, 0.0);
glBegin(GL_POLYGON);