Where should the functions for working with shaders in OpenGL be defined? In my "GL.h" and "GLU.h" they are not.

My environment: Windows 7, NVIDIA Geforce GT610

The glGetString (GL_VERSION) function produces "OpenGL version: 4.5.0 NVIDIA 364.72". All normal functions work fine. I managed to draw a cube, rotate it, apply a texture using glBindTexture () and glTexCoord2f ().

on Windows and Linux, OpenGL comes with the system. And of course the path there will be different and software implementation. After all, the Microsoft implementation is in Windows, in Linux, probably SGI. So here I have my embedded header files, located in the folder 'C: \ Program Files (x86) \ Windows Kits \ 8.1 \ Include \ um \ gl'. And for some reason there are no functions necessary for me there.

  • Which OS, with which versions? - D-side
  • @ D-side, so here! I pointed it out, and the great guru Krom Stern corrected me and removed the "extra" in his opinion info. Sorry, Windows 7, OpenGL 4.5 - cvvvlad
  • @ D-side, I will be glad to at least some comments. No one wants to answer. Did everything work for everyone at once? Or I just do it on linux above under OpenGL. - cvvvlad
  • 4.5 where is it written? - D-side
  • @ D-side, this is the output of the glGetString (GL_VERSION) function - cvvvlad

1 answer 1

In theory, along with the system is the standard implementation of OpenGL, and in Windows, at least, is quite old. When installing firewood GPU, usually, the implementation is updated to the one that pulls the GPU. This is all independent of headlines.

When used, the headers are associated with the implementation, and only with those methods that are in it, the rest remains empty or hidden (and of course if the headers are old, then there are no new methods in them).

You get two options, either the old / chopped implementation, or the headers.

Now to the question "where to find":

  • Update firewood on the GPU.
  • Download fresh headers from the Internet (unfortunately in C ++ I can’t tell you where)
  • Firewood on the card are the last, already updated. I think the problem with the headers. I will search, thank you - cvvvlad
  • I got them finally! Everything turned out as you said. The easiest way out was to install yourself GLEW. In glext.h which on the official website you can find all the extra. functions after OpenGL1. But these functions are announced as something "mysteriously" for me, something like delegates. In order to use these functions you need to sweat, and GLEW will do everything for you and announce the rules. headlines. Thanks to those who responded. - cvvvlad