   Fog problem.
  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.   
  Would be strange of every OpenGL function except Fogi started with gl, wouldn't it? glFogi is the name of the function.   ;  Hmm yes I forgot the prefix. But still another problem with GLenum on GL_FOG_COORD_SRC And GL_FRAGMENT_DEPTH Undeclaired.   ;  Have you included glext.h, or defined the values yourself?   ;  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.   ;Quote:Original post by As-12I 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.   