{"id":26168994,"url":"https://github.com/cloudofoz/raylib-gizmo","last_synced_at":"2025-03-11T18:58:54.190Z","repository":{"id":267151195,"uuid":"900296023","full_name":"cloudofoz/raylib-gizmo","owner":"cloudofoz","description":"A clean and customizable 3D gizmo tool for raylib. Designed with an Immediate Mode style for simplicity, it requires just a single function call to draw and interact. Supports global, local, and view-based axis orientations. Enables seamless translation, rotation, scaling, or any combination thereof, managed with intuitive bitwise flags.","archived":false,"fork":false,"pushed_at":"2024-12-08T17:10:58.000Z","size":146,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-08T18:19:56.632Z","etag":null,"topics":["3d","game-development","gizmo","graphics","raylib","tools","transforms"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudofoz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-12-08T12:17:49.000Z","updated_at":"2024-12-08T18:15:31.000Z","dependencies_parsed_at":"2024-12-08T18:31:33.089Z","dependency_job_id":null,"html_url":"https://github.com/cloudofoz/raylib-gizmo","commit_stats":null,"previous_names":["cloudofoz/raylib-gizmo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudofoz%2Fraylib-gizmo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudofoz%2Fraylib-gizmo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudofoz%2Fraylib-gizmo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudofoz%2Fraylib-gizmo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudofoz","download_url":"https://codeload.github.com/cloudofoz/raylib-gizmo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243095798,"owners_count":20235548,"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","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":["3d","game-development","gizmo","graphics","raylib","tools","transforms"],"created_at":"2025-03-11T18:58:53.546Z","updated_at":"2025-03-11T18:58:54.184Z","avatar_url":"https://github.com/cloudofoz.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Version](https://img.shields.io/badge/raylib--gizmo-v0.1beta-informational) ![Version](https://img.shields.io/badge/raylib-v5.5-informational)  ![License](https://img.shields.io/github/license/cloudofoz/raylib-gizmo?refresh=1)\n\n\u003e **Note**: This library is in **beta**. Your feedback and support in enhancing its quality are greatly appreciated!\n\n## Introduction\n\n**raylib-gizmo** is a clean and customizable 3D gizmo tool for raylib. Designed with an **Immediate Mode style** for simplicity, it requires just a single function call to draw and interact.  \nNo dependencies other than raylib: just include `raygizmo.c/.h` in your project, and you're ready to go!\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"res/raylib-gizmo-types.gif\" alt=\"raylib-gizmo types\"\u003e\n  \u003cimg src=\"res/raygizmo_icon.svg\" alt=\"raylib-gizmo icon\" width=\"270\" height=\"270\"\u003e\n  \u003cimg src=\"res/raylib-gizmo.gif\" alt=\"raylib-gizmo example\"\u003e\n\u003c/p\u003e\n\n## Table of Contents\n\n- [Core Features](#core-features)\n- [Minimal Usage](#minimal-usage)\n- [Code Examples](#code-examples)\n- [License](#license)\n- [Current Limitations](#current-limitations)\n- [Credits](#credits)\n\n## Core Features\n\n- **Portable Code:** No dependencies other than raylib.\n- **Ease of Use:** Simple and customizable.\n- **Flexible Transformations:** Translate, rotate, scale, or any combination of these three together.\n- **Orientation Support:** Works with global, local, and view orientations.\n- **Immediate-Mode Style:** Just one function call to draw and interact with the gizmo.\n- **Camera Independence:** Gizmo size remains consistent regardless of camera movement.\n- **raylib Integration:** Leverages raylib's `Transform` structure, eliminating the need for additional data structures.\n\n## Minimal Usage\n\n```c\n#include \u003craygizmo.h\u003e\n\nint main(...) {\n\n    Model model;\n\n    ...\n\n    // Initialize a Transform for the gizmo.\n    // This Transform stores translation, rotation, and scaling values,\n    // and will be dynamically updated by the gizmo during the program.\n    Transform gizmoTransform = GizmoIdentity();\n  \n    while (...) {\n    \n        ...\n\n        // Update the model's transform matrix using the gizmo's Transform.\n        model.transform = GizmoToMatrix(gizmoTransform);\n\n        // Draw the model with the updated transformation matrix.\n        DrawModel(model, Vector3Zero(), 1.0f, WHITE);\n    \n        // Render a translation + rotation gizmo and handle user input.\n        // The gizmoTransform will be directly updated by this gizmo.\n        DrawGizmo3D(GIZMO_TRANSLATE | GIZMO_ROTATE, \u0026gizmoTransform);\n\n        ...\n\n    }\n}\n\n```\n\n---\n\n## Code Examples\n\n**[`1) example_01_getting_started.c`](https://github.com/cloudofoz/raylib-gizmo/blob/main/examples/gizmo/example_01_getting_started.c)**  \n\u003e *Description:* Demonstrates how to integrate and interact with a simple, globally oriented, 3D translation gizmo in a raylib scene.\n   \u003cp align=\"center\"\u003e\n    \u003cimg src=\"res/raygizmo_example_01.jpg\" alt=\"raygizmo_example_01.jpg\" width=\"380\"\u003e\n   \u003c/p\u003e\n\n**[`2) example_02_gizmo_types.c`](https://github.com/cloudofoz/raylib-gizmo/blob/main/examples/gizmo/example_02_gizmo_types.c)**  \n\u003e *Description:* Demonstrates multiple gizmo modes (translate, rotate, scale, and all combined) with fixed configurations for simplicity.\n   \u003cp align=\"center\"\u003e\n    \u003cimg src=\"res/raygizmo_example_02.jpg\" alt=\"raygizmo_example_02.jpg\" width=\"380\"\u003e\n   \u003c/p\u003e\n   \n---\n\n## License\n\nThis project is licensed under the **Zlib** License. See the [LICENSE](LICENSE.md) file for details.\n\n---\n\n## Current Limitations\n\n| Operation  | Global | Local | View  |\n|------------|--------|-------|-------|\n| Translate  | Yes    | Yes   | Yes   |\n| Rotate     | Yes    | Yes   | Yes   |\n| Scale      | No     | Yes   | No    |\n\nFor now, every gizmo with a scaling component will operate in local axis orientation. This means that an object will always be scaled as if no other transforms are applied.\n\n---\n\n## Credits\n\nAlthough many gizmos share a similar appearance, this project drew visual inspiration from the Blender 3D editor. Interacting with Blender's gizmo provided key insights into designing my tool.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudofoz%2Fraylib-gizmo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudofoz%2Fraylib-gizmo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudofoz%2Fraylib-gizmo/lists"}