{"id":13603997,"url":"https://github.com/Dav1dde/glad","last_synced_at":"2025-04-11T22:32:14.944Z","repository":{"id":9767925,"uuid":"11737385","full_name":"Dav1dde/glad","owner":"Dav1dde","description":"Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.","archived":false,"fork":false,"pushed_at":"2025-03-26T08:56:43.000Z","size":5682,"stargazers_count":4002,"open_issues_count":23,"forks_count":466,"subscribers_count":74,"default_branch":"glad2","last_synced_at":"2025-04-08T20:08:13.588Z","etag":null,"topics":["c","code-generation","cpp","d","egl","generator","gl","glad","gles","gles2","glx","loader-generator","nim","opengl","pascal","python","rust","vulkan","wgl"],"latest_commit_sha":null,"homepage":"https://glad.dav1d.de/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dav1dde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-07-29T10:54:13.000Z","updated_at":"2025-04-08T13:33:22.000Z","dependencies_parsed_at":"2023-02-10T06:01:22.654Z","dependency_job_id":"be5ecc35-0c53-47d4-bead-13e7007666b2","html_url":"https://github.com/Dav1dde/glad","commit_stats":{"total_commits":526,"total_committers":42,"mean_commits":"12.523809523809524","dds":0.2965779467680608,"last_synced_commit":"f49229523c58ad7698e941f7c51454e77dd9d6a8"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dav1dde%2Fglad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dav1dde%2Fglad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dav1dde%2Fglad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dav1dde%2Fglad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dav1dde","download_url":"https://codeload.github.com/Dav1dde/glad/tar.gz/refs/heads/glad2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248489793,"owners_count":21112639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","code-generation","cpp","d","egl","generator","gl","glad","gles","gles2","glx","loader-generator","nim","opengl","pascal","python","rust","vulkan","wgl"],"created_at":"2024-08-01T19:00:37.840Z","updated_at":"2025-04-11T22:32:12.901Z","avatar_url":"https://github.com/Dav1dde.png","language":"C","readme":"glad\n====\n\nVulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specifications\nfor multiple languages.\n\nCheck out the [webservice for glad2](https://glad.sh) to generate the files you need!\n\n\n**NOTE:** This is the 2.0 branch, which adds more functionality but changes the API.\n\nSome languages are only available in the [glad1 generator](https://glad.dav1d.de).\n\n## Examples\n\n```c\n#include \u003cglad/gl.h\u003e\n// GLFW (include after glad)\n#include \u003cGLFW/glfw3.h\u003e\n\n\nint main() {\n    // -- snip --\n\n    GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, \"LearnOpenGL\", NULL, NULL);\n    glfwMakeContextCurrent(window);\n\n    int version = gladLoadGL(glfwGetProcAddress);\n    if (version == 0) {\n        printf(\"Failed to initialize OpenGL context\\n\");\n        return -1;\n    }\n\n    // Successfully loaded OpenGL\n    printf(\"Loaded OpenGL %d.%d\\n\", GLAD_VERSION_MAJOR(version), GLAD_VERSION_MINOR(version));\n\n    // -- snip --\n}\n```\n\nThe full code: [hellowindow2.cpp](example/c++/hellowindow2.cpp)\n\nMore examples in the [examples directory](example/) of this repository.\n\n## Plugins\n\nGlad [plugins](https://github.com/Dav1dde/glad/wiki/Extending-Glad)\nmaintained by the community to add support for more languages:\n\n- [Fortran](https://github.com/AarnoldGad/glad-fortran).\n\n## Documentation\n\nThe documentation can be found in the [wiki](https://github.com/Dav1dde/glad/wiki).\n\n\nExamples can be found [in the example directory](/example). Some examples:\n\n* C/C++\n    * [GL GLFW](example/c/gl_glfw.c)\n    * [GL GLFW On-Demand loading](example/c/gl_glfw_on_demand.c)\n    * [GL GLFW Multiple Windows/Contexts](example/c++/multiwin_mx/)\n    * [GL SDL2](example/c/gl_sdl2.c)\n    * [Vulkan GLFW](example/c/vulkan_tri_glfw/)\n    * [GLX](example/c/glx.c)\n    * [GLX Modern](example/c/glx_modern.c)\n    * [WGL](example/c/wgl.c)\n    * [EGL X11](example/c/egl_x11/)\n* Rust\n    * [GL GLFW](example/rust/gl-glfw/)\n    * [GL GLFW Multiple Windows/Contexts](example/rust/gl-glfw-mx/)\n\n\n\n## License\n\nFor the source code and various Khronos files see [LICENSE](/LICENSE).\n\nThe generated code from glad is any of Public Domain, WTFPL or CC0.\nNow Khronos has some of their specifications under Apache Version 2.0\nlicense which may have an impact on the generated code,\n[see this clarifying comment](https://github.com/KhronosGroup/OpenGL-Registry/issues/376#issuecomment-596187053)\non the Khronos / OpenGL-Specification issue tracker.\n","funding_links":[],"categories":["Graphics","C","Game Development","Graphic Libraries \u0026 Renderers","Profile Loaders"],"sub_categories":["Byte Size","Data Management","Game Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDav1dde%2Fglad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDav1dde%2Fglad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDav1dde%2Fglad/lists"}