{"id":19249664,"url":"https://github.com/slingercode/chafacad","last_synced_at":"2025-02-23T16:22:23.496Z","repository":{"id":233394234,"uuid":"786705301","full_name":"slingercode/chafacad","owner":"slingercode","description":"AutoCAD... but chafa","archived":false,"fork":false,"pushed_at":"2024-08-15T20:52:41.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T05:42:44.681Z","etag":null,"topics":["raylib","raylib-zig","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slingercode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-15T06:35:44.000Z","updated_at":"2024-08-15T20:52:44.000Z","dependencies_parsed_at":"2024-08-17T02:17:53.956Z","dependency_job_id":null,"html_url":"https://github.com/slingercode/chafacad","commit_stats":null,"previous_names":["slingercode/chafacad"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slingercode%2Fchafacad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slingercode%2Fchafacad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slingercode%2Fchafacad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slingercode%2Fchafacad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slingercode","download_url":"https://codeload.github.com/slingercode/chafacad/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240341037,"owners_count":19786203,"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":["raylib","raylib-zig","zig"],"created_at":"2024-11-09T18:15:02.231Z","updated_at":"2025-02-23T16:22:23.473Z","avatar_url":"https://github.com/slingercode.png","language":"Zig","readme":"# ChafaCAD\n\n## Requirements\n\n- [Zig](https://ziglang.org/) =\u003e `\u003e=0.13.0`\n- [Raylib](https://www.raylib.com/) (raylib is handled by raylib-zig)\n\n## Local Installation\n\n1. `zig build`\n\n\u003e [!NOTE]  \n\u003e I use the font [Berkeley Mono](https://berkeleygraphics.com/typefaces/berkeley-mono) (🐐) so the configuration expects this font\n\n## TODO\n\n* [ ] Hold esc key to quit draw mode if drawimg\n* [ ] Draw a line, where and how to store it (deprecate line and store a polyline)\n* [ ] Detect a figure (hatch mode in a polygon)\n* [ ] Area\n* [ ] Detect if the drawing is not a polygon\n* [ ] 90° mode\n* [ ] Combine hatch mode (two or more polygoms in a same operation)\n* [ ] Two or more polygons inside a polygon?\n\n## References\n\n### Old References\n\nThis links are from my previos versions and I'm keeping them in\norder to create an archive\n\n#### Raylib using C\n\n- [Raylib - Working on MacOS](https://github.com/raysan5/raylib/wiki/Working-on-macOS)\n- [themutti - Raylib installation](https://github.com/themutti/raylib-installation)\n\n#### OpenGL, GLEW, GLFW using C\n\nThis links are from my previous version that was using GLEW and GLFW but I'm keeping them in order to create an archive\n\n- [Some interesting post in reddit](https://www.reddit.com/r/opengl/comments/199433i/how_can_i_setup_opengl_for_development_on_an_m2/?share_id=PtuJHyXrNGdZehrqYYZTM\u0026utm_content=1\u0026utm_medium=ios_app\u0026utm_name=ioscss\u0026utm_source=share\u0026utm_term=1)\n- [OpenGL tutorial](https://www.opengl-tutorial.org/)\n- [Triangle](https://antongerdelan.net/opengl/hellotriangle.html)\n- [Triangle solved](https://github.com/dmsurti/hello_triangle/blob/master/main.c)\n\n## Personal comments\n\n- I tried to build raylib manually in zig and failed miserably, as a possible TODO is to stop using raylib-zig in a near future (or not)\n- Apparently, OpenGL in MacOS and the M lineup is kinda special.\n  So my option is this: use the last supported OpenGL version (4.1) with GLEW and use GLFW\n- I spend like 1.5 hours trying to make the basic glfw example... there are some important\n  steps in order to link the library into the project. ([this is a nice help](https://stackoverflow.com/questions/60894143/linking-glew-and-glfw3-on-mac-on-command-line))\n\n  So... we need to link to the path that brew install it. in the build its the solution.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslingercode%2Fchafacad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslingercode%2Fchafacad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslingercode%2Fchafacad/lists"}