Jump to content
  • Advertisement
Sign in to follow this  
As-12

OpenGL Fog problem.

This topic is 4439 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

Problem with compiler . I'm using Dev-C++ Version4.9.9.2 and while I tried compile the code "Fogi(GL_FOG_COORD_SRC,GL_FRAGMENT_DEPTH); with Dev-C++. But the compiler says that there is no function or function undecaliration.I think my dev-C++ is using opengl 1.3 but I looked for update and there is none. So Anyway to fix the problem ? Or If I right anyidea to update dev-c++'s opengl.

Share this post


Link to post
Share on other sites
Advertisement
Would be strange of every OpenGL function except Fogi started with gl, wouldn't it? glFogi is the name of the function.

Share this post


Link to post
Share on other sites
Hmm yes I forgot the prefix. But still another problem with GLenum on GL_FOG_COORD_SRC And GL_FRAGMENT_DEPTH Undeclaired.

Share this post


Link to post
Share on other sites
I have tried include the gl/glext.h but its still the same. And I dont know the value of them . So I dont know what value should I define with.

Share this post


Link to post
Share on other sites
Quote:
Original post by As-12
I have tried include the gl/glext.h but its still the same. And I dont know the value of them . So I dont know what value should I define with.
Are you using the latest glext.h?

GL_FOG_COORD_SRC is 0x8450 and GL_FRAGMENT_DEPTH is 0x8452, but I recommend just using the glext.h I just linked to.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!