PDA

View Full Version : Mingw gl.h has not GL_MAX_ELEMENTS_VERTICES declared



tonnot
5th July 2011, 19:23
Mingw gl.h has not some values defined for several GL constants
for example GL_MULTISAMPLE, GL_MAX_ELEMENTS_VERTICES....
Where (people that develops mingw ??) have I to go to say this little fault ?
Thanks

mcosta
7th July 2011, 08:21
I checked my MInGW installation. (MinGW 4.4 & 4.5)

these values are present

Line 747

#define GL_MAX_ELEMENTS_VERTICES 0x80E8

Line 929

#define GL_MULTISAMPLE 0x809D

The values are the same of Mesa in my Linux machine

tonnot
7th July 2011, 12:02
But, I have get the last version. I have win xp.
The value is at glext.h not gl.h .
I'm now a little confused.
Have I to include glext.h ? QGLwidget use it ?
Thanks

mcosta
7th July 2011, 12:07
QGLWidget uses only <gl.h> and <glu.h>

ChrisW67
7th July 2011, 23:27
In the dark ages the MingW gl.h used to include glext.h but this caused problems (http://sourceforge.net/tracker/index.php?func=detail&aid=610178&group_id=2435&atid=102435) (as comments in the gl.h file indicate). If you want the definitions for GL version 1.2 or 1.3 then include glext.h directly.