About using "GL_CLAMP_TO_EDGE" parameter

Started by
3 comments, last by HullSmurf 12 years, 11 months ago
While I tried to pass "GL_CLAMP_TO_EDGE" parameter to "glTexParameter()", I got an error compiling message: "undeclared identifier". I got OpenGL installed by CD from the book "OpenGL SuperBible", and I thought it''s version 1.2. Could anyone figure out why I cannot use "GL_CLAMP_TO_EDGE"? By the way, I cannot find the downloadable OpenGL1.2 on www.opengl.org. Where can I got it? Thanks a lot
Advertisement
Try GL_CLAMP_TO_EDGE_EXT
Windows has OpenGL 1.1 but your video card propably has 1.2 and that is a difference. You have OpenGL 1.2 but you need an extra header and treat new functions like extensions. The extra header is here http://oss.sgi.com/projects/ogl-sample/ABI/glext.h

To use GL_CLAMP_TO_EDGE should it be enough to include glext.h using new functions is also easy. You can check your OpenGL version by running NeHe tutorial 25.
Yes, it''s workable!
I got the glext.h included then using GL_CLAMP_TO_EDGE.
Everything''s okay now! Thanks! :D
Thanks for the link. I am just looking for it.

This topic is closed to new replies.

Advertisement