Quote:
Originally Posted by simasimon
hi
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 C
|
On my system, it is
typedefed in
/usr/include/GL/gl.h. This file is
#included 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 or
glut). 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).