View Full Version : glTexImage3D Problem

Stack Overflow
01-17-2003, 02:17 PM

I have "glext.h", and GL_TEXTURE_3D is defined in the header file. The problem is, is when I try to Texture my Image using 3D, not 2D, it does not like the function glTexImage3D. I checked in my header file and it is in there, but my compiler can't find the function. Also, the function GL_TEXTURE_3D is found by the compiler, but not glTexImage3D. Why?

error C2065: 'glTexImage3D' : undeclared identifier


01-17-2003, 02:36 PM
The function pointers that are not in Microsoft's OGL 1.1 library have to be obtained manually using wglGetProcAddress().

This is a commonly asked beginner question, so if you search the boards here for "extensions" I'm sure you'll be able to find a code snippet to help you.

-- Zeno

[This message has been edited by Zeno (edited 01-17-2003).]

Stack Overflow
01-17-2003, 02:44 PM
Sorry for posting it here, I just thought it was an advanced question.


01-17-2003, 02:46 PM
No problem. I didn't mean to say that twice http://www.opengl.org/discussion_boards/ubb/smile.gif (edited).