Skip to content

slingercode/chafacad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChafaCAD

Requirements

  • Zig => >=0.13.0
  • Raylib (raylib is handled by raylib-zig)

Local Installation

  1. zig build

Note

I use the font Berkeley Mono (🐐) so the configuration expects this font

TODO

  • Hold esc key to quit draw mode if drawimg
  • Draw a line, where and how to store it (deprecate line and store a polyline)
  • Detect a figure (hatch mode in a polygon)
  • Area
  • Detect if the drawing is not a polygon
  • 90° mode
  • Combine hatch mode (two or more polygoms in a same operation)
  • Two or more polygons inside a polygon?

References

Old References

This links are from my previos versions and I'm keeping them in order to create an archive

Raylib using C

OpenGL, GLEW, GLFW using C

This links are from my previous version that was using GLEW and GLFW but I'm keeping them in order to create an archive

Personal comments

  • 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)

  • Apparently, OpenGL in MacOS and the M lineup is kinda special. So my option is this: use the last supported OpenGL version (4.1) with GLEW and use GLFW

  • I spend like 1.5 hours trying to make the basic glfw example... there are some important steps in order to link the library into the project. (this is a nice help)

    So... we need to link to the path that brew install it. in the build its the solution.