• Advertisement

Archived

This topic is now archived and is closed to further replies.

About using "GL_CLAMP_TO_EDGE" parameter

This topic is 2443 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Try GL_CLAMP_TO_EDGE_EXT

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites
Yes, it''s workable!
I got the glext.h included then using GL_CLAMP_TO_EDGE.
Everything''s okay now! Thanks! :D

Share this post


Link to post
Share on other sites

  • Advertisement