Hardware Agnostic Graphics Library
Posted: Tue Jun 09, 2020 2:18 pm
HAGL is a lightweight hardware agnostic graphics library. It does not contain any hardware specific code. You can use it with any microcontroller including ESP32 and esp-idf. I have been working on and off with it for a while, mostly to scratch my own itch. It can still be considered work in progress. However API should be 90% stable.
Being hardware agnostic means user has to provide a HAL. Minimal HAL can provide only a putpixel function. There is a HAL for ESP32 which supports most hobbyist displays. There is also an SDL2 HAL for normal computers. You can use the latter to develop graphics code on your laptop.
For example when I was doing the Old school demo effects I first coded them on my laptop. When I was happy with the effects I used the same code for ESP32. I also did some other proof of concepts with the library such as ESP video player.
I would appreciate some feedback about the API and the library in general. I try to keep things fairly low level.