|
|
3 weeks ago | |
|---|---|---|
| .. | ||
| examples | 3 weeks ago | |
| ANALYSIS.md | 3 weeks ago | |
| MICROUI-PORT.md | 3 weeks ago | |
| README.md | 3 weeks ago | |
| helper.def | 9 months ago | |
| helper.mod | 9 months ago | |
| helper.o | 3 weeks ago | |
| microui.def | 3 weeks ago | |
| microui.mod | 3 weeks ago | |
| microui.o | 3 weeks ago | |
| microuiHelpers.def | 3 weeks ago | |
| microuiHelpers.mod | 3 weeks ago | |
| microuiHelpers.o | 3 weeks ago | |
| tigr.def | 3 weeks ago | |
| tigr.h | 9 months ago | |
| tigr.o | 3 weeks ago | |
I did this because I needed a graphic library to follow the UI tutorial here :
https://nakst.gitlab.io/tutorial/ui-part-1.html
The tigr library repository is here:
https://github.com/erkkah/tigr/tree/master
I used also the h2d utility found in the XDS distribution, to check my choices when I tralslated the C headers into Modula-2 ones.
To compile the examples, use this command :
gcc -c tigr.c
gm2 -fiso -c helper.mod
gm2 -fiso -I ../../ ../../tigr.o ../../helper.o program.mod -o program -s -lGL -lX11
This repository also contains an ISO Modula-2 port of microui v2.02 (immediate-mode UI, by rxi) together with a tigr-rendered demo.
modula2/)gcc -c ../tigr-master/tigr.c -o tigr.o gm2 -fiso -c helper.mod gm2 -fiso -I. -c microuiHelpers.mod gm2 -fiso -I. -c microui.mod
modula2/examples/microui-demo/)gm2 -fiso -I ../../ ../../tigr.o ../../helper.o
../../microuiHelpers.o ../../microui.o \
microui-demo.mod -o microui-demo -lGL -lX11
./microui-demo
microui-demo.png)gm2 -fiso -I ../../ ../../tigr.o ../../helper.o
../../microuiHelpers.o ../../microui.o \
microui-headless.mod -o microui-headless -lGL -lX11
./microui-headless
microui-demo shows windows, headers, tree nodes, buttons, a popup,
checkboxes, sliders, a text box and a log panel; press ESC to quit. See
ANALYSIS.md for the GM2-specific adaptations and bugs worked around.