{"id":25752196,"url":"https://github.com/alexeykarnachev/raygizmo","last_synced_at":"2025-06-27T04:33:18.624Z","repository":{"id":214692410,"uuid":"737127309","full_name":"alexeykarnachev/raygizmo","owner":"alexeykarnachev","description":"Interactive 3D Gizmo gadget for raylib","archived":false,"fork":false,"pushed_at":"2025-04-19T09:45:01.000Z","size":3210,"stargazers_count":18,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T19:23:32.953Z","etag":null,"topics":["3d","c","gizmo","raylib"],"latest_commit_sha":null,"homepage":"","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/alexeykarnachev.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}},"created_at":"2023-12-29T22:51:23.000Z","updated_at":"2025-04-19T09:45:04.000Z","dependencies_parsed_at":"2024-01-01T12:38:07.772Z","dependency_job_id":"a1ae44de-c3da-4bac-b866-43e09eed4fb6","html_url":"https://github.com/alexeykarnachev/raygizmo","commit_stats":null,"previous_names":["alexeykarnachev/raygizmo"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alexeykarnachev/raygizmo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeykarnachev%2Fraygizmo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeykarnachev%2Fraygizmo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeykarnachev%2Fraygizmo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeykarnachev%2Fraygizmo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexeykarnachev","download_url":"https://codeload.github.com/alexeykarnachev/raygizmo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeykarnachev%2Fraygizmo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262188396,"owners_count":23272341,"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","c","gizmo","raylib"],"created_at":"2025-02-26T14:27:07.960Z","updated_at":"2025-06-27T04:33:18.606Z","avatar_url":"https://github.com/alexeykarnachev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAYGIZMO\n`raygizmo` was designed as an auxiliar module for [raylib](https://github.com/raysan5/raylib) to create simple interactive gizmo gadget to perform basic object transformation (rotation and translation).\n\n![thumbnail](./thumbnail.gif)\n\n\n*NOTE: raygizmo is a single-file header-only library (despite its internal dependency on raylib), so, functions definition AND implementation reside in the same file `raygizmo.h`, when including `raygizmo.h` in a module, `RAYGIZMO_IMPLEMENTATION` must be previously defined to include the implementation part of `raygizmo.h` BUT only in one compilation unit, other modules could also include `raygizmo.h` but `RAYGIZMO_IMPLEMENTATION` must not be defined again.*\n\n*NOTE: Current raygizmo implementation is intended to work with [raylib-5.0](https://github.com/raysan5/raylib/releases/tag/5.0) and PLATFORM_DESKTOP*\n\n\n## Example\nIn a simplest case gizmo can be used like this:\n```c\n#define RAYGIZMO_IMPLEMENTATION\n#include \"raygizmo.h\"\n\nint main(void) {\n    InitWindow(800, 450, \"raygizmo\");\n\n    Camera3D camera;\n    camera.fovy = 45.0f;\n    camera.target = (Vector3){0.0f, 0.0f, 0.0f};\n    camera.position = (Vector3){5.0f, 5.0f, 5.0f};\n    camera.up = (Vector3){0.0f, 1.0f, 0.0f};\n    camera.projection = CAMERA_PERSPECTIVE;\n\n    Model model = LoadModelFromMesh(GenMeshTorus(0.3, 1.5, 16.0, 16.0));\n    RGizmo gizmo = rgizmo_create();\n\n    while (!WindowShouldClose()) {\n        BeginDrawing();\n        {\n            Vector3 position = {\n                model.transform.m12, model.transform.m13, model.transform.m14};\n            rgizmo_update(\u0026gizmo, camera, position);\n            model.transform = MatrixMultiply(model.transform, rgizmo_get_tranform(gizmo, position));\n            \n            ClearBackground(BLACK);\n            rlEnableDepthTest();\n\n            BeginMode3D(camera);\n            {\n                DrawModel(model, (Vector3){0.0, 0.0, 0.0}, 1.0, PURPLE);\n            }\n            EndMode3D();\n\n            rgizmo_draw(gizmo, camera, position);\n        }\n        EndDrawing();\n    }\n\n    rgizmo_unload();\n    UnloadModel(model);\n    CloseWindow();\n\n    return 0;\n}\n```\n\n\nMore complex example could be built and run like this (make sure you have libraylib and raylib headers in your lib and include paths):\n```bash\ngcc -o ./examples/raygizmo ./examples/raygizmo.c -lraylib -lm -lpthread -ldl \u0026\u0026 ./examples/raygizmo\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeykarnachev%2Fraygizmo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexeykarnachev%2Fraygizmo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeykarnachev%2Fraygizmo/lists"}