Voltar ao ranking

Dav1dde/glad

Cgen.glad.sh

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.

vulkanopenglglglesgles2eglglxwglpythonccppnim
Crescimento de estrelas
Estrelas
4.6k
Forks
508
Crescimento semanal
Issues
29
2k4k
ago. de 2013nov. de 2017mar. de 2022jul. de 2026
README

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.

Repositórios relacionados
shadps4-emu/shadPS4

PlayStation 4 emulator for Windows, Linux, macOS and FreeBSD written in C++

C++GNU General Public License v2.0emulatorps4
shadps4.net
32.2k2.3k
Tencent/ncnn

ncnn is a high-performance neural network inference framework optimized for the mobile platform

C++Otherinferencehigh-preformance
23.6k4.5k
k4yt3x/video2x

A machine learning-based video super resolution and frame interpolation framework. Est. Hack the Valley II, 2018.

C++GNU Affero General Public License v3.0machine-learninganime4k
docs.video2x.org
20.6k1.8k
google/filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2

C++Apache License 2.0pbrgraphics
google.github.io/filament/
20.3k2.2k
lettier/3d-game-shaders-for-beginners

🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.

C++shaders3d
lettier.github.io/3d-game-shaders-for-beginners/index.html
19.8k1.5k
RPCS3/rpcs3

PlayStation 3 emulator and debugger

C++GNU General Public License v2.0assembly-languagecpp
rpcs3.net
19.2k2.3k
doitsujin/dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine

C++zlib Licensevulkandxbc
17.7k1.2k
gfx-rs/wgpu

A cross-platform, safe, pure-Rust graphics API.

Rustcrates.ioApache License 2.0webgpurust
wgpu.rs
17.6k1.4k
bkaradzic/bgfx

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

CBSD 2-Clause "Simplified" Licenseenginerendering
bkaradzic.github.io/bgfx/overview.html
17.3k2.1k
AaronFeng753/Waifu2x-Extension-GUI

Video, Image and GIF upscale/enlarge(Super-Resolution) and Video frame interpolation. Achieved with Waifu2x, Real-ESRGAN, Real-CUGAN, RTX Video Super Resolution VSR, SRMD, RealSR, Anime4K, RIFE, IFRNet, CAIN, DAIN, and ACNet.

C++Otherwaifu2xanime4k
patreon.com/aaronfeng
16.8k1k
alibaba/MNN

MNN: A blazing-fast, lightweight inference engine battle-tested by Alibaba, powering high-performance on-device LLMs and Edge AI.

C++Apache License 2.0mnnconvolution
15.7k2.4k
tracel-ai/burn

Burn is a next generation tensor library and Deep Learning Framework that doesn't compromise on flexibility, efficiency and portability.

Rustcrates.ioApache License 2.0autodiffdeep-learning
burn.dev
15.6k986