1

I am learning how to build and run OpenGL with C. And i am using Glad as a function loader. Keeping it simple, i am compiling and linking manually. Everything works.

(Using Visual Studio Code as an IDE)

It is helpful to show what a function does. And this normally shows up when hovering over it. (Documentation)

But when i hover over the "glClear(GL_COLOR_BUFFER_BIT)" as an example it does not show the OpenGL definition of the function.

Instead it shows:

#define glClear glad_glClear

Expands to: glad_glClear

Is there a way to show the OpenGL documentation instead?

My only dependencies are Glad and GLFW.

Dahl
  • 149
  • 1
  • 10
  • 1
    Not that I know of. The default gl.h on Windows btw. also doesn't include any documentation. Not sure about other OS. – BDL Jun 09 '23 at 12:45
  • @BDL I see. I use LWJGL for Java normally, and all the OpenGL functions are documented. So i'm just used to it :) – Dahl Jun 09 '23 at 12:52

1 Answers1

2

GLAD-generated headers do not contain any information that a tool like a VS Code plugin can use to track down documentation. They certainly do not contain the documentation itself.

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982