Hi.
I have some problems with compiling code using 3D textures. My compiler complains exactly on function glTexImage3D. I iclude all necessary headers:
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glext.h>
To copy to clipboard, switch view to plain text mode
and i get theese errors:
GlClass.cpp: In member function `virtual void GlClass::initializeGL()':
GlClass.cpp:35: error: `glTexImage3D' was not declared in this scope
GlClass.cpp:35: warning: unused variable 'glTexImage3D'
GlClass.cpp: In member function `virtual void GlClass::initializeGL()':
GlClass.cpp:35: error: `glTexImage3D' was not declared in this scope
GlClass.cpp:35: warning: unused variable 'glTexImage3D'
To copy to clipboard, switch view to plain text mode
I know that I have my system configured properly because I can compile simple programs without qt that use 3D textures. I wonder if it's some qt's opengl limitation because 2D textures work fine. I use qt 4.
Thanks for help.
Bookmarks