{"id":31974483,"url":"https://github.com/komodoresoft/mgl","last_synced_at":"2026-05-17T03:46:27.086Z","repository":{"id":310744296,"uuid":"1041059759","full_name":"komodoresoft/mgl","owner":"komodoresoft","description":"OpenGL 1-style wrapper for Modern OpenGL in C","archived":false,"fork":false,"pushed_at":"2025-10-05T23:35:14.000Z","size":585,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-06T01:16:56.361Z","etag":null,"topics":["c","immediate-mode","opengl","wrapper"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/komodoresoft.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,"dco":null,"cla":null}},"created_at":"2025-08-19T23:27:53.000Z","updated_at":"2025-10-05T23:35:18.000Z","dependencies_parsed_at":"2025-08-20T01:23:09.295Z","dependency_job_id":"6a79dbb5-63b3-47ed-9f94-1d72938d0f06","html_url":"https://github.com/komodoresoft/mgl","commit_stats":null,"previous_names":["komodoresoft/mgl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/komodoresoft/mgl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komodoresoft%2Fmgl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komodoresoft%2Fmgl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komodoresoft%2Fmgl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komodoresoft%2Fmgl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komodoresoft","download_url":"https://codeload.github.com/komodoresoft/mgl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komodoresoft%2Fmgl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021014,"owners_count":26086947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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","immediate-mode","opengl","wrapper"],"created_at":"2025-10-14T20:17:13.419Z","updated_at":"2025-10-14T20:17:17.548Z","avatar_url":"https://github.com/komodoresoft.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 Modern Legacy GL (MGL)\n\n**MGL** is an OpenGL 1-style wrapper for modern OpenGL functions, keeping an old-school, lightweight interface similar to legacy OpenGL. Perfect for small engines, retro-style games, or learning purposes.\u003cbr\u003e\n\n![Build](https://img.shields.io/badge/build-kmak-lightgrey?style=flat-square\u0026logo=c) ![Lang](https://img.shields.io/badge/language-C-blue?style=flat-square\u0026logo=c) ![License](https://img.shields.io/badge/license-MIT-green?style=flat-square) ![Status](https://img.shields.io/badge/status-WIP-orange?style=flat-square)\n\n## 📝 Example\nThis little snippet shows what the library allows you to do.\n\n```c\nmglMatrixMode(GL_PROJECTION);\nmglLoadIdentity();\nmgluPerspective(60.0, (float)width/(float)height, 0.1, 100.0);\nmgluTranslatef(0.0, 0.0, -5.0);\n\nmglMatrixMode(GL_MODELVIEW);\nmglLoadIdentity();\n\nmglBegin(GL_TRIANGLES);\n    mglColor3f(1.0, 0.0, 0.0); mglVertex2f( 0.0, -1.0);\n    mglColor3f(0.0, 1.0, 0.0); mglVertex2f(-0.5,  0.5);\n    mglColor3f(0.0, 0.0, 1.0); mglVertex2f( 0.5,  0.5);\nmglEnd();\n```\n\n## ⚙️  Prerequisites\nTo compile and use MGL, you need to install the following prerequisites:\n- C compiler (GCC, Clang, MSVC)\n- OpenGL headers and libraries\n- [The KMAK Build System](https://komodoresoft.com/kmak/)\n\n## 📦 Installation\nTo install the library and use it in your projects, use the following commands:\n\n```bash\ngit clone https://github.com/komodoresoft/mgl\ncd mgl\nkmak make.kmk init\nkmak make.kmk build_mgl\n```\n\n## 🧩 Compiling the Examples\nTo compile the examples you need [glfw3](https://www.glfw.org/).\n- Once you downloaded the glfw3, copy the headers in `include\\GLFW`\n- Then, place the compiled libraries in `lib`\n- Next, place `glfw3.dll` in `examples`\n- Finally, you can compile the examples with:\n```bash\nkmak make.kmk build_tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomodoresoft%2Fmgl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomodoresoft%2Fmgl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomodoresoft%2Fmgl/lists"}