{"id":13578545,"url":"https://github.com/stetre/moonglfw","last_synced_at":"2026-02-11T08:54:17.940Z","repository":{"id":54385900,"uuid":"52142964","full_name":"stetre/moonglfw","owner":"stetre","description":"Lua bindings for GLFW","archived":false,"fork":false,"pushed_at":"2024-09-27T11:39:42.000Z","size":431,"stargazers_count":68,"open_issues_count":3,"forks_count":13,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-05T19:35:12.331Z","etag":null,"topics":["glfw","lua","lua-bindings","opengl","vulkan"],"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,"publiccode":null,"codemeta":null}},"created_at":"2016-02-20T07:53:57.000Z","updated_at":"2025-02-14T12:14:42.000Z","dependencies_parsed_at":"2024-11-05T16:39:43.186Z","dependency_job_id":"255b502f-80a8-4f61-a2b3-c7345af40ba6","html_url":"https://github.com/stetre/moonglfw","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/stetre/moonglfw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoonglfw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoonglfw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoonglfw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoonglfw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stetre","download_url":"https://codeload.github.com/stetre/moonglfw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stetre%2Fmoonglfw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29330757,"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":["glfw","lua","lua-bindings","opengl","vulkan"],"created_at":"2024-08-01T15:01:31.693Z","updated_at":"2026-02-11T08:54:17.898Z","avatar_url":"https://github.com/stetre.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"## MoonGLFW: Lua bindings for GLFW\n\nMoonGLFW is a Lua binding library for [GLFW](http://www.glfw.org/).\n\nIt runs on GNU/Linux, MacOS, and on Windows (MSYS2/MinGW) and requires \n[Lua](http://www.lua.org/) (\u003e=5.3)\nand [GLFW](http://www.glfw.org/download.html) (\u003e=3.1, supports 3.3).\n\nMoonGLFW is part of the [MoonLibs](https://github.com/stetre/moonlibs) collection\nof Lua libraries for graphics and audio programming.\n\n_Author:_ _[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/moonglfw/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/moonglfw\n$ cd moonglfw\nmoonglfw$ make\nmoonglfw$ make install # or 'sudo make install' (Ubuntu and MacOS)\n```\n\nNOTE: Vulkan support requires GLFW version \u003e= 3.2, and the Vulkan loader (libvulkan.so)\nto be in the linker's search path at runtime\n(see [MoonVulkan](https://github.com/stetre/moonvulkan#getting-and-installing)'s installation \ninstructions for more details).\n\n#### Example\n\n```lua\n-- Script: hello.lua\n\nglfw = require(\"moonglfw\")\n\n-- Create a window:\nwindow = glfw.create_window(640, 480, \"Hello world!\")\n\nfunction my_callback(w, x, y) \n   assert(w == window)\n   print(\"cursor position:\", x, y) \nend\n\n-- Register a callback to track the cursor's position:\nglfw.set_cursor_pos_callback(window, my_callback)\n\n-- Repeatedly poll for events:\nwhile not glfw.window_should_close(window) do\n   glfw.poll_events()\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\nOther examples can be found in the **examples/** directory contained in the release package,\nand in the [MoonLibs](https://github.com/stetre/moonlibs) repository.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstetre%2Fmoonglfw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstetre%2Fmoonglfw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstetre%2Fmoonglfw/lists"}