Vector based header only GUI library. Targets either pure sdl sdl_vgui_context.h or nanovg nanovg_vgui_context.h. Supports reflection with sttr.
See src/example.lzz for how to implement. Depends on sdl-stb-font for font rendering
git clone https://github.com/SnapperTT/vecgui
cd vecgui
git clone https://github.com/SnapperTT/sdl-stb-font
# To build example:
./build.shPlease note that this is here for a personal project this may be one day usuable but no guarantees.
Requires lzz2 (binary mirror)
In headers:
// Include the header
#include "vgui.h"
#include "sdl_vgui_context.h" // or nanovgand in ONE implementation (.cpp) file:
#define VECGUI_IMPL 1
#include "vgui.h"
#include "sdl_vgui_context.h" // or nanovgRedefine the following macros to change:
VGUI_DO_DELTA_DRAWING: Only drawVGUI_USE_INT: Use int as coordinatesVGUI_USE_DOUBLE: Use double as coordinatesVGUI_STRING: Defaults to std::stringVGUI_VECTOR: Defaults to std::vectorVGUI_NEW(X): Defaults tonew (X), replace to use your custom allocatorVGUI_DEL(X): Defaults todelete (X), replace to use your custom allocator