glGetString( GL_SHADING_LANGUAGE_VERSION )

Started by ntfs.hard, March 31, 2013, 05:30:53 PM

Previous topic - Next topic

ntfs.hard

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
#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]

iZzz32

#1
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.