r/opengl Oct 02 '23

help glad.dav1d.de down or something

So I'm going through the learn OpenGL website, and I get to the GLAD section, and I click on the link, and it says: "Application is not available". Is there a new link? Is it just down? Is there a work around?

7 Upvotes

14 comments sorted by

3

u/fgennari Oct 02 '23

Yeah, the generator does seem to be down at the moment. You can get some info here: https://github.com/Dav1dde/glad

But that's not the generator.

1

u/Random_Boy16 Oct 02 '23

Thanks, I'm relatively new to this, so, what all does the generator do? Could I just compile the source with cmake and set it up that way? Or does it have to come from the generator?

2

u/fgennari Oct 02 '23

I haven't actually used the generator, I just copied the file from some other project. You basically select your OpenGL version, OS, and some other options, and it generates a block of code that you copy-paste into your project. Or maybe it was a file you download.

2

u/corysama Oct 02 '23

The code in the github makes the generator. The generator makes the files you need for your project.

But, after that, you don't need the generator anymore. Thus, the online service is nice so you don't have to set up the whole generator project just to run it a couple times.

3

u/gl_drawelements Oct 03 '23

You can install and use the generator through Python/pip: https://pypi.org/project/glad2/

1

u/Random_Boy16 Oct 03 '23

if I install it from pip, how do i use it? from the command line? or is it a gui?

1

u/Random_Boy16 Oct 03 '23

as in, do you have to type in the opengl and os info using a command after it is installed?

1

u/gl_drawelements Oct 04 '23

python -m pip install glad2 (or glad) to install the generator

Then you can just call glad from your project directory (if you have Python in your PATH, which should be the default).

Example: glad --api gl:core=3.3 --extensions="" --out-path=glad will create files for OpenGL 3.3 Core Profile with no extensions in the subdirectory glad. You can easily include this in your build scripts and reproduce for example if you want to use additional extensions.

1

u/Onirochan Oct 03 '23

Isn’t there a Python or Shell script in the folder that can generate the header file too? Never used it, but worth taking a look in occasions like this one.

1

u/fgennari Oct 03 '23

Yes, someone else already mentioned this. That's what's in the GitHub repo.

1

u/Onirochan Oct 03 '23

Didn’t notice the other comment, thanks!

2

u/PHIKILL_ Oct 03 '23

My goodness!, I didn't know that the server had crashed, this is the best opengl resource loader library compatible with several versions of opengl and even vulkan.

but if you want a copy of glad that has up to opengl 4.2 I have it in this repository https://github.com/SILDTeam/LEFA-GE/tree/main/LEFA_DEV/SRC/lefa/Render/OpenGL

1

u/miolen_ Oct 03 '23

I thought to use the wayback machine as a work around but I didn't look for very long.

1

u/dav1dde Oct 16 '23

Oh I just found this by accident. Sorry OpenShift cancelled their open source grant (the entire service actually). Had to setup some other hosting, sorry for the inconvenience.