This library provides a lightweight OpenGL-based framework based on PicoGL.
This library has been tested on esp32-wrover-b.
- Download the library from the official repository.
- Add the header files and source files to your project directory.
- Implement your own initialization function and update function for updates.
- Initialize the user interface by calling "ui_init()" function with your own initialization function and update function as arguments.
- Call "ui_loop()" function to enter event loop and handle user interface events.
- Call "ui_end()" function to release resources used for UI.
see example folder
**ui_init(void (init_fn)(void), int (update_fn)(void))
Initialize the user interface with your own initialization function and update function. Returns 0 on success, -1 otherwise.
Parameters:
init_fn
: a function pointer to your own initialization function.update_fn
: a function pointer to your own update function for GUI logic updates.
ui_loop()
Main function to enter event loop and handle user interface events.
ui_end()
Release resources used for UI.
tkSwapBuffers()
Swap buffers to update the screen.