View Full Version : glGetTexLevelParameter is undefined

05-26-2011, 03:23 PM
I'm getting glGetTexLevelParameter is undefined
(running in windows)
my gl include files are:

#include <gl/glew.h>
#include <gl/GL.h>
#include <gl/GLU.h>
#include <gl/wglew.h>

has anyone run into this problem?

05-26-2011, 03:27 PM
Nevermind. I found this:
GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);

The red book is telling me to use something no longer supported.
I can't wait for the new red book.

Alfonse Reinheart
05-26-2011, 03:48 PM
glGetTexLevelParameter was never a function. The name represents a group of functions. Just like people talk about glUniform, even though there is no glUniform function (there are glUniform1i, glUniform4fv, etc).

Most OpenGL materials concatenate these groups of functions into a single name without the trailing letters.