Originally Posted by simasimon
i need yo use a data structure defined as GLubyte. apparently GLubyte is defined in <GL/glu.h> or <GL/glut.h> in windows. someone knows which would be the equivalent to this library in linux? thanx
On my system, it is typedef
ed in /usr/include/GL/gl.h
. This file is #include
d by /usr/include/GL/glu.h
and by /usr/include/GL/glut.h
. So basically, you use the same headers.
If you #include <GL/glu.h>
or #include <GL/glut.h>
you should link to libglut (which may be provided by freeglut
). If you #include <GL/gl.h>
directly (and donít #include
the others), you should link to libGL (provided by various packages, including mesa
and probably your graphics card driver).