{"id":32974886,"url":"https://github.com/skaslev/gl3w","last_synced_at":"2026-03-11T22:02:54.586Z","repository":{"id":854114,"uuid":"585485","full_name":"skaslev/gl3w","owner":"skaslev","description":"Simple OpenGL core profile loading","archived":false,"fork":false,"pushed_at":"2025-09-23T08:57:54.000Z","size":100,"stargazers_count":728,"open_issues_count":12,"forks_count":164,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-09-23T10:29:14.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/skaslev/gl3w","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"openstream/SaferpayBusiness","license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skaslev.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"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,"dco":null,"cla":null}},"created_at":"2010-03-29T20:25:57.000Z","updated_at":"2025-09-23T08:57:58.000Z","dependencies_parsed_at":"2022-08-09T20:31:31.736Z","dependency_job_id":"4cda8d14-071c-4ff6-b6f9-c122d5605d62","html_url":"https://github.com/skaslev/gl3w","commit_stats":{"total_commits":129,"total_committers":27,"mean_commits":4.777777777777778,"dds":"0.41860465116279066","last_synced_commit":"5f8d7fd191ba22ff2b60c1106d7135bb9a335533"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skaslev/gl3w","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skaslev%2Fgl3w","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skaslev%2Fgl3w/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skaslev%2Fgl3w/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skaslev%2Fgl3w/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skaslev","download_url":"https://codeload.github.com/skaslev/gl3w/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skaslev%2Fgl3w/sbom","scorecard":{"id":829157,"data":{"date":"2025-08-11","repo":{"name":"github.com/skaslev/gl3w","commit":"96ebe5eded05aa699e8feb25f7bbc9f1c821a207"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"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":-1,"reason":"No tokens found","details":null,"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":"Code-Review","score":3,"reason":"Found 9/23 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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: UNLICENSE:0","Info: FSF or OSI recognized license: The Unlicense: UNLICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 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-23T17:15:44.534Z","repository_id":854114,"created_at":"2025-08-23T17:15:44.534Z","updated_at":"2025-08-23T17:15:44.534Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30404103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T21:51:19.558Z","status":"ssl_error","status_checked_at":"2026-03-11T21:50:57.892Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-11-13T06:00:24.551Z","updated_at":"2026-03-11T22:02:54.579Z","avatar_url":"https://github.com/skaslev.png","language":"Python","readme":"========================================\ngl3w: Simple OpenGL core profile loading\n========================================\n\nIntroduction\n------------\n\ngl3w_ is the easiest way to get your hands on the functionality offered by the\nOpenGL core profile specification.\n\nIts main part is a simple gl3w_gen.py_ Python script that downloads the\nKhronos_ supported glcorearb.h_ header and generates gl3w.h and gl3w.c from it.\nThose files can then be added and linked (statically or dynamically) into your\nproject.\n\nRequirements\n------------\n\ngl3w_gen.py_ requires Python version 2.7 or newer.\nIt is also compatible with Python 3.x.\n\nExample\n-------\n\nHere is a simple example of using gl3w_ with glut. Note that GL/gl3w.h must be\nincluded before any other OpenGL related headers::\n\n    #include \u003cstdio.h\u003e\n    #include \u003cGL/gl3w.h\u003e\n    #include \u003cGL/glut.h\u003e\n\n    // ...\n\n    int main(int argc, char **argv)\n    {\n            glutInit(\u0026argc, argv);\n            glutInitDisplayMode(GLUT_RGBA | GLUT_DEPTH | GLUT_DOUBLE);\n            glutInitWindowSize(width, height);\n            glutCreateWindow(\"cookie\");\n\n            glutReshapeFunc(reshape);\n            glutDisplayFunc(display);\n            glutKeyboardFunc(keyboard);\n            glutSpecialFunc(special);\n            glutMouseFunc(mouse);\n            glutMotionFunc(motion);\n\n            if (gl3wInit()) {\n                    fprintf(stderr, \"failed to initialize OpenGL\\n\");\n                    return -1;\n            }\n            if (!gl3wIsSupported(3, 2)) {\n                    fprintf(stderr, \"OpenGL 3.2 not supported\\n\");\n                    return -1;\n            }\n            printf(\"OpenGL %s, GLSL %s\\n\", glGetString(GL_VERSION),\n                   glGetString(GL_SHADING_LANGUAGE_VERSION));\n\n            // ...\n\n            glutMainLoop();\n            return 0;\n    }\n\nIf your Project is using CMake you can import gl3w_ using ``FetchContent``::\n\n    include(FetchContent)\n    FetchContent_Declare(\n        gl3w\n        GIT_REPOSITORY https://github.com/skaslev/gl3w.git\n        GIT_TAG        master\n        GIT_SHALLOW    TRUE\n        GIT_PROGRESS   TRUE\n        EXCLUDE_FROM_ALL\n    )\n    FetchContent_MakeAvailable(gl3w)\n    # Declare your target that needs gl3w here\n    target_link_libraries(\u003ctarget\u003e PRIVATE gl3w)\n\nAPI Reference\n-------------\n\nThe gl3w_ API consists of just three functions:\n\n``int gl3wInit(void)``\n\n    Initializes the library. Should be called once after an OpenGL context has\n    been created. Returns ``0`` when gl3w_ was initialized successfully,\n    ``non-zero`` if there was an error.\n\n``int gl3wIsSupported(int major, int minor)``\n\n    Returns ``1`` when OpenGL core profile version *major.minor* is available\n    and ``0`` otherwise.\n\n``GL3WglProc gl3wGetProcAddress(const char *proc)``\n\n    Returns the address of an OpenGL extension function. Generally, you won't\n    need to use it since gl3w_ loads all functions defined in the OpenGL core\n    profile on initialization. It allows you to load OpenGL extensions outside\n    of the core profile.\n\nOptions\n-------\n\nThe generator script optionally takes the arguments:\n\n``--ext`` to include the GL Extensions in output header.\n\n``--root=outputdir`` to set the location for the output to something else than current working directory.\n\nLicense\n-------\n\n.. image:: public-domain-mark.png\n\ngl3w_ is in the public domain. See the file UNLICENSE for more information.\n\nCredits\n-------\n\nSlavomir Kaslev \u003cslavomir.kaslev@gmail.com\u003e\n    Initial implementation\n\nKelvin McDowell\n    Mac OS X support\n\nSjors Gielen\n    Mac OS X support\n\nTravis Gesslein\n    Patches regarding glcorearb.h\n\nArthur Tombs\n    Port to Python 3\n\nDaniel Cousens [https://github.com/dcousens]\n    Code contributions\n\nCopyright\n---------\n\nOpenGL_ is a registered trademark of SGI_.\n\n.. _gl3w: https://github.com/skaslev/gl3w\n.. _gl3w_gen.py: https://github.com/skaslev/gl3w/blob/master/gl3w_gen.py\n.. _glcorearb.h: https://www.opengl.org/registry/api/GL/glcorearb.h\n.. _OpenGL: http://www.opengl.org/\n.. _Khronos: http://www.khronos.org/\n.. _SGI: http://www.sgi.com/\n","funding_links":[],"categories":["Profile Loaders"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskaslev%2Fgl3w","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskaslev%2Fgl3w","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskaslev%2Fgl3w/lists"}