SlawQ
12th February 2006, 21:49
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>
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'
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.
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>
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'
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.