ricardo
24th July 2009, 03:33
Hi friends!
My QGLWidget derived class has this:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
But compiler says GL_CLAMP_TO_EDGE is an undeclared identifier.
Which file should I include?
BTW, evidently I include:
#include <QGLWidget>
Thanks a lot.
EDIT: Another qustion, how can I know if an extension is supported or not?
My QGLWidget derived class has this:
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
But compiler says GL_CLAMP_TO_EDGE is an undeclared identifier.
Which file should I include?
BTW, evidently I include:
#include <QGLWidget>
Thanks a lot.
EDIT: Another qustion, how can I know if an extension is supported or not?