GLFW VS glad

Compare GLFW vs glad and see what are their differences.

GLFW

A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input (by glfw)

glad

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. (by Dav1dde)
Our great sponsors
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • Scout APM - A developer's best friend. Try free for 14-days
  • SaaSHub - Software Alternatives and Reviews
GLFW glad
28 15
8,214 2,235
2.3% -
8.8 3.6
1 day ago about 2 months ago
C Python
zlib License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

GLFW

Posts with mentions or reviews of GLFW. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-09-13.
  • [Handmade Network] How to write better (game) libraries
    Even if someone wants to use VS2008 for game development, it only took me a Google search to find https://github.com/glfw/glfw/blob/master/deps/vs2008/stdint.h which doesn't have any dependencies and a very permissive licence.
  • how do i include glfw in my code to make a window?
    reddit.com/r/vscode | 2021-08-31
  • LibOS – Cross-platform OS features in C++
    reddit.com/r/cpp | 2021-08-23
    You seem to have had a similar impetus as I had 20 years ago when I created GLFW (though with a slightly different focus).
  • Is there a way to get japanese text input in raylib?
    reddit.com/r/raylib | 2021-08-23
    Thanks for the detailed explanation. I'm afraid I didn't considered that use case for raylib and it would require some investigation to implement it... but raylib uses internally GLFW for desktop platforms and I've seen there is a related issue: https://github.com/glfw/glfw/issues/41 About IME support by the browser, it should be investigated. Feel free to open an issue on raylib GitHub for further investigation!
  • Massive trouble with GLFW header inclusion. Can someone help?
    Looking at the actual code of the .h file, it looks pretty empty, and like it needs some extra files perhaps. For instance, functions are just filled with comments with some random explanations, so they are basically 1 line, which probably does nothing. Here you can take a look yourself on github.
  • Hey, I want start
    I would suggest using GLFW and Glad with C++ and use LearnOpenGL as a refrence
  • Compiling in MacOS M1 Chip (arm64)
    reddit.com/r/raylib | 2021-07-22
    Now I read the logs and it seems the issue is with GLFW. I've found this: https://github.com/glfw/glfw/issues/1805
  • Opengl(glfw) gears on termux x11 NO ROOT!!
    reddit.com/r/termux | 2021-07-19
    Clone the glfw repositiory - git clone https://github.com/glfw/glfw.git
  • 3D Visualization with C++
    Use https://www.glfw.org/ to get a window with an OpenGL context.
  • A better way of running Minecraft Without XWayland. Because I REALLY had nothing better to do with my life.
    https://github.com/glfw/glfw/pull/1725 (which is where I got some patches from) says there wasn't much upstream interest on merging the patches. But https://github.com/glfw/glfw/pull/1711 (the fix for the freezing issue) might be a good candidate for merging, though I don't know how GLFW people work, so I cannot comment on if it is properly upstreamable or not.

glad

Posts with mentions or reviews of glad. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-01.
  • how to compile opengl file on linux?
  • Hey, I want start
    I would suggest using GLFW and Glad with C++ and use LearnOpenGL as a refrence
  • How do you use OpenGL without glew or any other libraries?
    reddit.com/r/opengl | 2021-06-28
    With all that being said, I don't actually recommend that you do this. GLAD for example lets you select what you want to load specifically and will generate a single glad.c and glad.h pair which is very lightweight (it will also include the required Khronos headers that you'll need). If you really want you can poke around and modify these files later, but I see no reason why you wouldn't want to use it.
  • How do I get OpenGL working in a c++ vscode project?
    reddit.com/r/opengl | 2021-06-03
    I only remember how for mingw64, but its probably a similar process. 1 - Compile glfw in cmake, build it with vstudio (this makes two .h files if im not wrong). 2 - use this to get a glad.h file: https://glad.dav1d.de/ 3 - Put all the .h files in your project folder (or in the mingw include folder) 4 - You need to link some libraries in the tasks.json file (if you dont have one search it up) Here's the ones I have linked:
  • GLAD generator seems to be down
    reddit.com/r/opengl | 2021-05-02
    It seems like they have moved to https. Using https://glad.dav1d.de/ works for me. After generating it also points to the http version of the site. Replacing http with https worked for me and I can download the zip file.
    reddit.com/r/opengl | 2021-05-02
    Just recently I needed GLAD also and I noticed it too was "down" (i could reach the site but not download anything). I attempted to use glad2 but either missing something or too tired and had some issues with it. The solution was to just download the source and follow the instructions on Github to run the python tool command line to generate the config I wanted. If you get stuck here is an example of the command I used.
  • Advanced 2d topics
    reddit.com/r/opengl | 2021-03-30
    GLAD (https://glad.dav1d.de/) is a very good OpenGL function/extension library.
  • C++ OpenGL full setup on Arch Linux
    reddit.com/r/archlinux | 2021-03-11
    glad folder is downloaded form here which has include and src folder which I have not touched. I just created CMakeLists.txt file in that directory. https://glad.dav1d.de/
    reddit.com/r/archlinux | 2021-03-11
    I see what the book wants you to do. You can generate a GLAD header here and copy it into your project.
    reddit.com/r/archlinux | 2021-03-11
    You can either install the GLAD generator through pip, or use it online at https://glad.dav1d.de/. (using the online generator is much easier)

What are some alternatives?

When comparing GLFW and glad you can also consider the following projects:

bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

SDL - Simple Directmedia Layer

Skia - Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

OpenSceneGraph - OpenSceneGraph git repository

Ogre 3D - scene-oriented, flexible 3D engine (C++, Python, C#, Java)

glew-cmake - GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources

LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com

Open-Source Vulkan C++ API - Open-Source Vulkan C++ API

magnum - Lightweight and modular C++11 graphics middleware for games and data visualization

Allegro - The official Allegro 5 git repository. Pull requests welcome!

cdecrypt - Decrypt Wii U NUS content — Forked from: https://code.google.com/archive/p/cdecrypt/

ImGuizmo - Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui