PDA

View Full Version : [OpenGL] glTexImage question



t1497f35
June 22nd, 2011, 08:57 PM
Hi,


void glTexImage2D(GLenum target, GLint level,
GLint internalFormat, //THIS
GLsizei width, GLsizei height, GLint border,
GLenum format, //AND THIS ONE
GLenum type, const GLvoid * data);
Why is "internalFormat" of type "GLint", while "format" is a "GLenum"? Since they both share same values like GL_RED, GL_RGB GL_RGBA etc shouldn't they be of same type (either GLenum or GLint) ?