I'm trying to learn OpenGL. There was a question about its installation. As I found out, in Windows 7 there is an integrated OpenGL library. I found in my folder C:\Program Files (x86)\Windows Kits\8.1\Include\um\gl two files; GL.h and GLU.h Created a Visual C ++ console project, connected them there, initialized the window using GLUT. I drew a cube, played with forms, painted it.

Everything is working. Then I want to try to work with shaders. And here is the question: Why are there no shader functions in this embedded OpenGL? Where can I find them? When checking versions using glGetString(GL_VERSION) returns: "OpenGL version: 4.5.0 NVIDIA 355.82".

    2 answers 2

    You can use the GLEW library to get access to the functions for working with shaders.

    1. OpenGL is not a built-in library, but a specification.
    2. Libraries for a specific platform, as a rule, are provided by the video card manufacturer (in your case, NVIDIA)
    3. Header files can either be downloaded from http://www.opengl.org/registry , or install the Windows Software Development Kits or, if you are using VS, check the appropriate box when installing the studio.
    4. The header file for glext.h is glext.h .
    5. The easiest way to use something like Qt is where everything is already implemented.
    • Thanks, I meant that I have Windows Kits. In the end, I put GLEW and he did everything for me (there is no need to request the addresses of functions from glext.h myself). Qt is there, but I would like to deal specifically with OpenGL without any Qt chips, and then it is possible to use it. I read "Supreknigu OpenGL". Everything turns out =) - cvvvlad