glutMotionFunc(motion);
glutPassiveMotionFunc(motion);
+ glClearColor(0.6, 0.6, 0.6, 1);
+
if(wt_init(800, 600, &gfx)) {
return 1;
}
+ wt_window(0, "foo", WT_WS_DEFAULT, 100, 100, 200, 200);
glutMainLoop();
return 0;
{
glClear(GL_COLOR_BUFFER_BIT);
+ wt_draw();
+
glutSwapBuffers();
}