Eric Streit c4fe812d4d Add a Pong game example (no assets) há 3 semanas atrás
..
examples c4fe812d4d Add a Pong game example (no assets) há 3 semanas atrás
ANALYSIS.md c4fe812d4d Add a Pong game example (no assets) há 3 semanas atrás
README.md 02efb0bdda Fix tigr Modula-2 binding and complete the examples há 3 semanas atrás
helper.def 9a83b7ca75 first commit há 9 meses atrás
helper.mod 9a83b7ca75 first commit há 9 meses atrás
helper.o 02efb0bdda Fix tigr Modula-2 binding and complete the examples há 3 semanas atrás
tigr.def 02efb0bdda Fix tigr Modula-2 binding and complete the examples há 3 semanas atrás
tigr.h 9a83b7ca75 first commit há 9 meses atrás
tigr.o c4fe812d4d Add a Pong game example (no assets) há 3 semanas atrás

README.md

A GNU Modula-2 binding of the tigr graphic library

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.

Instructions

To compile the examples, use this command :

  • Compiling tigr.o

gcc -c tigr.c

  • Compiling helper.o

gm2 -fiso -c helper.mod

  • Compiling an example

gm2 -fiso -I ../../ ../../tigr.o ../../helper.o program.mod -o program -s -lGL -lX11