where can i find an simple glut example with framework for bulding it unter linux/gcc/mesa/glut (make-file) and under windows/visualc6/glut (dsw/dsp file)
Here is a piece of glut code, should work under ether windows or linux without any change. The program just open’s a window, does not draw anything. Press “ESC” key to exit.
#include <GL/glut.h> #include <stdlib.h>
void keyboard (unsigned char key, int x, int y)
{
switch (key) {
case 27:
exit(0);
break;
default:
break;
}
where can i find an simple glut example with framework for bulding it unter linux/gcc/mesa/glut (make-file) and under windows/visualc6/glut (dsw/dsp file)