PDA

View Full Version : GL_CLAMP_TO_EDGE. Anyone knows it?



tirengarfio
07-31-2006, 03:24 AM
Hi,

i found this code line:

glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);

but compiling give this error:

GL_CLAMP_TO_EDGE: undeclared identifier.

Anyone know this type?

k_szczech
07-31-2006, 03:42 AM
GL_CLAMP_TO_EDGE should be defined in glext.h. If you only included gl.h then you will have such error (I assume you are wrking under Windows).
You may also use glew or glee libraries to make life easier.