GitHub Hot Board

GitHub Hot Board · リポジトリアーカイブ

Dav1dde/glad

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs. (説明はリポジトリ自身のドキュメント由来です。)

データ時点 October 25Dav1dde

最高順位

#482

総合 · C 言語別

4.6K

累計スター

512

フォーク数

0

直近 30 日のランクイン日数

プロジェクト状態ライセンス: NOASSERTION最終 push: September 28未解決 Issue(PR 含む): 33

2026-10-25 から収集。不明 = 未収集

README にバッジを貼ろう · Dav1dde/glad[![README にバッジを貼ろう](https://git.vaiox.xyz/api/badge/Dav1dde/glad.svg)](https://git.vaiox.xyz/ja/repo/Dav1dde/glad)
<a href="https://git.vaiox.xyz/ja/repo/Dav1dde/glad"><img src="https://git.vaiox.xyz/api/badge/Dav1dde/glad.svg" alt="README にバッジを貼ろう" height="20"></a>

プロジェクト文書

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.

現在のランクイン

  • 482

    総合 · 歴代最強 · C

    4.6K スター · 512 fork · 総スター数

    総合 · C →

直近30日の推移

直近 30 日間のランクイン記録はありません。

類似プロジェクト · 共有トピック

← ランキングへ戻る