{"id":13578590,"url":"https://github.com/stetre/moongl","last_synced_at":"2026-02-11T08:54:14.363Z","repository":{"id":44379323,"uuid":"57018849","full_name":"stetre/moongl","owner":"stetre","description":"Lua bindings for OpenGL","archived":false,"fork":false,"pushed_at":"2023-06-10T08:27:55.000Z","size":17524,"stargazers_count":128,"open_issues_count":7,"forks_count":13,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-05T19:35:14.432Z","etag":null,"topics":["lua-bindings","opengl"],"latest_commit_sha":null,"homepage":null,"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/stetre.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}},"created_at":"2016-04-25T06:59:49.000Z","updated_at":"2025-03-24T03:40:43.000Z","dependencies_parsed_at":"2024-03-17T06:59:39.620Z","dependency_job_id":null,"html_url":"https://github.com/stetre/moongl","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/stetre/moongl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoongl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoongl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoongl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoongl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stetre","download_url":"https://codeload.github.com/stetre/moongl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoongl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29330755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T06:13:03.264Z","status":"ssl_error","status_checked_at":"2026-02-11T06:12:55.843Z","response_time":97,"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":["lua-bindings","opengl"],"created_at":"2024-08-01T15:01:32.043Z","updated_at":"2026-02-11T08:54:14.351Z","avatar_url":"https://github.com/stetre.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"## MoonGL: Lua bindings for OpenGL\n\nMoonGL is a Lua binding library for [OpenGL](https://www.opengl.org/).\n\nIt runs on GNU/Linux, MacOS, and on Windows (MSYS2/MinGW) and requires\n[Lua](http://www.lua.org/) (\u003e=5.3), \n[OpenGL](https://www.opengl.org/) (\u003e=3.3), and\n[GLEW](http://glew.sourceforge.net/).\n\n\n_Authored by:_ _[Stefano Trettel](https://www.linkedin.com/in/stetre)_\n\n[![Lua logo](./doc/powered-by-lua.gif)](http://www.lua.org/)\n\n#### License\n\nMIT/X11 license (same as Lua). See [LICENSE](./LICENSE).\n\n#### Documentation\n\nSee the [Reference Manual](https://stetre.github.io/moongl/doc/index.html).\n\n#### Getting and installing\n\nSetup the build environment as described [here](https://github.com/stetre/moonlibs), then:\n\n```sh\n$ git clone https://github.com/stetre/moongl\n$ cd moongl\nmoongl$ make\nmoongl$ make install # or 'sudo make install' (Ubuntu and MacOS)\n```\n\n#### Example\n\nBelow is an \"Hello, World!\" example, using [MoonGLFW](https://github.com/stetre/moonglfw) \nas [windowing library](#see-also).\n\nOther examples can be found in the **examples/** directory contained in the release package.\n\n```lua\n-- Script: hello.lua\n\ngl = require(\"moongl\")\nglfw = require(\"moonglfw\")\n\nglfw.window_hint('context version major', 3)\nglfw.window_hint('context version minor', 3)\nglfw.window_hint('opengl profile', 'core')\n\nwindow = glfw.create_window(600, 400, \"Hello, World!\")\nglfw.make_context_current(window)\ngl.init() -- this is actually glewInit()\n\nfunction reshape(_, w, h) \n   print(\"window reshaped to \"..w..\"x\"..h)\n   gl.viewport(0, 0, w, h)\nend\n\nglfw.set_window_size_callback(window, reshape)\n\nwhile not glfw.window_should_close(window) do\n   glfw.poll_events()\n   -- ... rendering code goes here ...\n   gl.clear_color(1.0, 0.5, 0.2, 1.0) -- GLFW orange\n   gl.clear(\"color\", \"depth\")\n   glfw.swap_buffers(window)\nend\n```\n\nThe script can be executed at the shell prompt with the standard Lua interpreter:\n\n```shell\n$ lua hello.lua\n```\n\n#### See also\n\n* [MoonLibs - Graphics and Audio Lua Libraries](https://github.com/stetre/moonlibs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstetre%2Fmoongl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstetre%2Fmoongl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstetre%2Fmoongl/lists"}