{"id":15030362,"url":"https://github.com/dav1dde/glad","last_synced_at":"2026-10-19T00:09:31.828Z","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":"2026-06-18T11:37:32.000Z","size":5949,"stargazers_count":4609,"open_issues_count":32,"forks_count":510,"subscribers_count":72,"default_branch":"glad2","last_synced_at":"2026-09-25T00:40:58.799Z","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://gen.glad.sh/","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"claude":null,"gemini":null,"cursor":null,"copilot":null,"dco":null,"cla":null,"disclosure":null}},"created_at":"2013-07-29T10:54:13.000Z","updated_at":"2026-09-23T14:48:31.000Z","dependencies_parsed_at":"2026-08-25T00:53:22.401Z","dependency_job_id":"1387e1fc-aff1-458e-82e7-e0ed7c0c2d62","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,"purl":"pkg:github/Dav1dde/glad","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dav1dde%2Fglad/sbom","scorecard":{"id":38094,"data":{"date":"2025-08-11","repo":{"name":"github.com/Dav1dde/glad","commit":"431786d8126e4f383a81e36f47b61a5d52a1c20d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Maintained","score":4,"reason":"0 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":3,"reason":"Found 11/30 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/glad2.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/glad2.yaml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/Dav1dde/glad/glad2.yaml/glad2?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/glad2.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/Dav1dde/glad/glad2.yaml/glad2?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/glad2.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/Dav1dde/glad/glad2.yaml/glad2?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/glad2.yaml:16","Warn: pipCommand not pinned by hash: .github/workflows/glad2.yaml:17","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2019-217 / GHSA-462w-v97r-4m45","Warn: Project is vulnerable to: PYSEC-2014-8 / GHSA-8r7q-cvjq-x353","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: PYSEC-2014-82 / GHSA-fqh9-2qgg-h84h","Warn: Project is vulnerable to: PYSEC-2021-66 / GHSA-g3rq-g295-4j3m","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: PYSEC-2019-220 / GHSA-hj2j-77xm-mc5v","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T20:45:37.549Z","repository_id":9767925,"created_at":"2025-08-14T20:45:37.549Z","updated_at":"2025-08-14T20:45:37.549Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38343428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-18T02:00:06.448Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-24T20:13:11.713Z","updated_at":"2026-10-19T00:09:31.823Z","avatar_url":"https://github.com/Dav1dde.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"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 SDL3 Callbacks](example/c/gl_sdl3_callbacks.c)\n    * [GL SDL3](example/c/gl_sdl3.c)\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","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"}