Pelles C forum

Pelles C => Bug reports => Topic started by: ntfs.hard on March 31, 2013, 05:30:53 PM

Title: glGetString( GL_SHADING_LANGUAGE_VERSION )
Post by: ntfs.hard on March 31, 2013, 05:30:53 PM
Hello! Thanks so much for Pelles C!
But it will be greater if you can fix(?) opengl header files.
There is no GL_SHADING_LANGUAGE_VERSION and GL_SHADING_LANGUAGE_VERSION_ARB definiton.

For example, on my opensuse 12.3 it defined in glext.h as
Code: [Select]
#define GL_SHADING_LANGUAGE_VERSION       0x8B8C
#define GL_SHADING_LANGUAGE_VERSION_ARB   0x8B8C

An attached file building fine on linux:
    gcc main.c -lglut -lGLU -lGL -Wall

Sorry for my bad language. All the best, ntfs.hard.
ref:
    OpenGL spec 4.3: [22.2]
Title: Re: glGetString( GL_SHADING_LANGUAGE_VERSION )
Post by: iZzz32 on April 15, 2013, 09:28:21 PM
Because extensions vary from platform to platform and driver to driver, OpenGL developers can't expect interfaces for all extensions to be defined in the standard gl.h, glx.h, and wgl.h header files. Additional header files - glext.h, glxext.h, and wglext.h - are provided here. (http://www.opengl.org/registry/#headers)