GitHub Hot Board

GitHub Hot Board · Архів репозиторію

Dav1dde/glad

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. (Опис узято з самого репозиторію.)

C#c#code-generation#cpp

Дані на October 28Dav1dde

Найкраще місце

#484

Титани · C за мовою

Поточні місця · Титани #484

4.6K

Усього зірок

512

Усього форків

0

Днів у рейтингах (30 дн.)

Ліцензія: NOASSERTIONОстанній push: September 28Відкриті issues (вкл. PR): 33Збирається з 2026-10-25; невідомо = ще не зібрано

Поточні місця

Динаміка за 30 днів

Немає записів за останні 30 днів.

Документація проєкту

glad

Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specifications for multiple languages.

Check out the webservice for glad2 to generate the files you need!

NOTE: This is the 2.0 branch, which adds more functionality but changes the API.

Some languages are only available in the glad1 generator.

Examples

#include <glad/gl.h>
// GLFW (include after glad)
#include <GLFW/glfw3.h>


int main() {
    // -- snip --

    GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "LearnOpenGL", NULL, NULL);
    glfwMakeContextCurrent(window);

    int version = gladLoadGL(glfwGetProcAddress);
    if (version == 0) {
        printf("Failed to initialize OpenGL context\n");
        return -1;
    }

    // Successfully loaded OpenGL
    printf("Loaded OpenGL %d.%d\n", GLAD_VERSION_MAJOR(version), GLAD_VERSION_MINOR(version));

    // -- snip --
}

The full code: hellowindow2.cpp

More examples in the examples directory of this repository.

Plugins

Glad plugins maintained by the community to add support for more languages:

Documentation

The documentation can be found in the wiki.

Examples can be found in the example directory. Some examples:

License

For the source code and various Khronos files see LICENSE.

The generated code from glad is any of Public Domain, WTFPL or CC0. Now Khronos has some of their specifications under Apache Version 2.0 license which may have an impact on the generated code, see this clarifying comment on the Khronos / OpenGL-Specification issue tracker.

Поставте бейдж у свій README · Dav1dde/glad[![Поставте бейдж у свій README](https://git.vaiox.xyz/api/badge/Dav1dde/glad.svg)](https://git.vaiox.xyz/uk/repo/Dav1dde/glad)

Badge · 任何仓库都可以挂 —— 未上榜的仓库显示灰章,上完榜会自动点亮。

<a href="https://git.vaiox.xyz/uk/repo/Dav1dde/glad"><img src="https://git.vaiox.xyz/api/badge/Dav1dde/glad.svg" alt="Поставте бейдж у свій README" height="20"></a>

← До рейтингів

GitHub Hot BoardМашина часуОгляд联系我们 · Contact