C2 bindings for the sokol headers
(https://github.com/floooh/sokol)
- have https://github.com/c2lang/c2compiler
- get https://github.com/floooh/sokol
- copy
sokol-c2/sokolto Your C2_LIBDIR path orc2compiler/libs/ - modify makefile:
LIB_SOURCE = (just download sokol path) - If you want create new project, You can copy ./myapp :)
build run examples
make example=clear run
make example=triangle run
make example=triangle-bufferless run
make example=quad run
make example=bufferoffsets run
make example=cube runIf build echo
max char 31 error,
modifyc2compiler/ast_utils/constants.c2:line 21: MaxIdentifierLen = 96;
and rebuildc2compiler