Advertisement

I need Help with Glad Loader-Generator, Please.

Started by September 08, 2018 03:43 PM
1 comment, last by wintertime 6 years, 5 months ago

This is a beginner question in a way, but it does involve computer graphics.  I am having difficulties setting up GLAD for OpenGL C++.  I can find no documentation for the process of filling in the web-service generator.  I don't know what needs to be entered and with what.  The source code I am looking at is   https://learnopengl.com/code_viewer_gh.php?code=src/1.getting_started/6.3.coordinate_systems_multiple/coordinate_systems_multiple.cpp.  The glad generator is found here:  https://glad.dav1d.de/.  For example, is "API / gl" the OpenGL OS?  I am trying to understand how everyone did this without any instructions!  Could I have complete (eleven UIs) help, please?

Thank you so much; I'm having a rewarding time with OpenGL,

Josheir

Its actually pretty easy.

Assuming you are on PC:

- just choose the newest OpenGL Version under API->gl (4.6 or whatever your hardware supports)

- under Profile you want Core, if you are making a new program (Compatibility is only when you want to upgrade ancient existing software)

- optionally add some extensions, but I'd only do that if you really need some later

- I think, you can remove the checkmark on Generate a Loader if you use glfw

- click Generate, download, extract and put into your project

- add an include and a single line of code, like its done there: http://www.glfw.org/docs/latest/quick.html

 

This topic is closed to new replies.

Advertisement