Dotscape is a simple GUI program for composing 2D shapes out of triangles and exporting them to code for use with OpenGL or other graphics libraries.
## Why
I wanted to create glyphs in OpenGL for one of my other projects.
I coded vectors for 'A' and 'B' (containing 72 elements and 128 elements respectively), but the process was time consuming.
I wanted there to be a lightweight GUI editor specialised for creating 2D shapes that can be exported as code for use with OpenGL, and that's what this project is for.
## Demo
<p align="center">
<img src="images/anim.gif" height="400px"/>
</p>
## Building
### Build requirements
Dotscape has only been tested on aarch64-linux (a Raspberry Pi 5) but it may work on other platforms.
The last two requirements may be a bit malleable because the project follows the [Functional Core, Imperative Shell](https://hummy123.github.io/2024/06/20/Functional-Core,-Imperative-Shell.html) architecture, maintaining a strict separation between pure and impure code.
- Exports a function which takes `(xPos, yPos, xLength, yLength, windowWidth, windowHeight)` arguments and returns a vector where the object is fitted in these coordinates.