{"id":41081324,"url":"https://github.com/vbsw/glut","last_synced_at":"2026-01-22T13:39:45.540Z","repository":{"id":110351363,"uuid":"72994338","full_name":"vbsw/glut","owner":"vbsw","description":"GLUT binding for the programming language Go","archived":false,"fork":false,"pushed_at":"2021-08-05T16:43:54.000Z","size":43,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-14T09:59:28.573Z","etag":null,"topics":["binding","glut","golang","unlicense"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vbsw.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2016-11-06T14:00:44.000Z","updated_at":"2021-08-05T16:45:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf047586-64cd-4d6e-b606-b129485941b9","html_url":"https://github.com/vbsw/glut","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vbsw/glut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fglut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fglut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fglut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fglut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbsw","download_url":"https://codeload.github.com/vbsw/glut/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbsw%2Fglut/sbom","scorecard":{"id":917234,"data":{"date":"2025-08-11","repo":{"name":"github.com/vbsw/glut","commit":"c0a62aa9825711ca1c4c2ed186399fe255cd6efb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"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":"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":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":"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":"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"}}]},"last_synced_at":"2025-08-24T21:29:18.844Z","repository_id":110351363,"created_at":"2025-08-24T21:29:18.845Z","updated_at":"2025-08-24T21:29:18.845Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663812,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["binding","glut","golang","unlicense"],"created_at":"2026-01-22T13:39:45.051Z","updated_at":"2026-01-22T13:39:45.530Z","avatar_url":"https://github.com/vbsw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GLUT\r\n\r\n[![GoDoc](https://godoc.org/github.com/vbsw/glut?status.svg)](https://godoc.org/github.com/vbsw/glut)\r\n\r\n## Abstract\r\nThis is GLUT (version 3.7) binding (published at \u003chttps://github.com/vbsw/glut\u003e)\r\nfor the programming language Go.\r\n\r\nIf you want the binding of freeglut visit \u003chttps://github.com/vbsw/freeglut\u003e.\r\n\r\n## Copying\r\nThis is free and unencumbered software released into the public domain.\r\n\r\nAnyone is free to copy, modify, publish, use, compile, sell, or\r\ndistribute this software, either in source code form or as a compiled\r\nbinary, for any purpose, commercial or non-commercial, and by any\r\nmeans.\r\n\r\nIn jurisdictions that recognize copyright laws, the author or authors\r\nof this software dedicate any and all copyright interest in the\r\nsoftware to the public domain. We make this dedication for the benefit\r\nof the public at large and to the detriment of our heirs and\r\nsuccessors. We intend this dedication to be an overt act of\r\nrelinquishment in perpetuity of all present and future rights to this\r\nsoftware under copyright law.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\r\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\r\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\r\nOTHER DEALINGS IN THE SOFTWARE.\r\n\r\nFor more information, please refer to \u003chttp://unlicense.org\u003e\r\n\r\n## Example\r\n\r\n\tpackage main\r\n\r\n\timport (\r\n\t\t\"github.com/vbsw/glut\"\r\n\t)\r\n\r\n\tfunc main() {\r\n\t\tglut.Init()\r\n\t\tglut.InitDisplayMode(glut.SINGLE | glut.RGBA)\r\n\t\tglut.InitWindowSize(640, 480)\r\n\t\tglut.CreateWindow(\"Testing GLUT binding for Go\");\r\n\t\tglut.ReshapeFunc(reshape)\r\n\t\tglut.DisplayFunc(display)\r\n\t\tglut.KeyboardFunc(keyboard)\r\n\t\tglut.MainLoop()\r\n\t}\r\n\r\n\tfunc reshape(width, height int) {\r\n\t\tprintln(\"reshape\")\r\n\t}\r\n\r\n\tfunc display() {\r\n\t\tprintln(\"display\")\r\n\t}\r\n\r\n\tfunc keyboard(key uint8, x, y int) {\r\n\t\tif key==27 { // escape\r\n\t\t\tglut.DestroyWindow(glut.GetWindow())\r\n\t\t} else {\r\n\t\t\tif (glut.GetModifiers() \u0026 glut.ACTIVE_CTRL) \u003e 0 {\r\n\t\t\t\tprintln(\"key pressed: ctrl +\", key)\r\n\t\t\t} else {\r\n\t\t\t\tprintln(\"key pressed:\", key)\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n## Installation\r\n\r\n### Linux\r\nInstall the programming language [Go](https://golang.org/doc/install) and\r\nthe source code management system [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).\r\nYou also need GCC, the C standard library development package and the GLUT development package. Install them for example with\r\n\r\n        $ sudo apt-get install git gcc libc6-dev freeglut3-dev\r\n\r\nGet this project with\r\n\r\n\t$ go get github.com/vbsw/glut\r\n\r\nor update your local copy with\r\n\r\n\t$ go get -u github.com/vbsw/glut\r\n\r\nor compile it with\r\n\r\n\t$ go install github.com/vbsw/glut\r\n\r\n### Windows\r\nInstall the programming language [Go](https://golang.org/doc/install).\r\nInstall [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).\r\n\r\nGet this project with (run this preferably from the Git Bash)\r\n\r\n\t$ go get github.com/vbsw/glut\r\n\r\nor update your local copy with\r\n\r\n\t$ go get -u github.com/vbsw/glut\r\n\r\nCgo needs another compiler to compile c files. On a 64 bit system a 64 bit compiler is needed. I tried it with the gcc. MinGW provides only 32 bit binaries. So go to \u003chttp://tdm-gcc.tdragon.net\u003e to download 64 bit gcc binaries. Install it.\r\n\r\nThen download freeglut from \u003chttp://www.transmissionzero.co.uk/software/freeglut-devel/\u003e and unpack it for example to\r\n\r\n\tC:/Users/Alice/Downloads/freeglut\r\n\r\nThen open the file github.com/vbsw/glut/glut.go and change the first line from\r\n\r\n\t// #cgo LDFLAGS: -lGL -lGLU -lglut\r\n\t// #include \u003cstdlib.h\u003e\r\n\t// #include \u003cGL/glut.h\u003e\r\n\t// #include \"gofunctions.h\"\r\n\r\nto\r\n\r\n\t// #cgo CFLAGS: -IC:/Users/Alice/Downloads/freeglut/include\r\n\t// #cgo LDFLAGS: -LC:/Users/Alice/Downloads/freeglut/bin/x64 -l:freeglut.dll\r\n\t// #include \u003cstdlib.h\u003e\r\n\t// #include \u003cGL/glut.h\u003e\r\n\t// #include \"gofunctions.h\"\r\n\r\nTo compile run\r\n\r\n\t$ go install github.com/vbsw/glut\r\n\r\n## References\r\n\r\n- \u003chttps://www.opengl.org/resources/libraries/glut/glut-3.spec.pdf\u003e\r\n- \u003chttps://www.opengl.org/resources/libraries/glut/glut_downloads.php\u003e\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbsw%2Fglut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbsw%2Fglut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbsw%2Fglut/lists"}