Hello,
I’ve just finished cleaning up my SDL and Cairo bindings: GitHub - kwon-young/sdlpl: SWI-Prolog bindings to SDL · GitHub
Here are main features of the bindings:
- true 1 to 1 bindings of SDL and Cairo API.
- Memory safe: SDL and Cairo handles/resources are represented with a blob. when blob are garbage collected resources are automatically freed.
- Garbage collection safe: dependencies between resources are tracked through atom references, meaning that garbage collection will destroy things in correct order.
- SDL software rendering
- SDL explicit full gpu rendering ! See the pong example with shader and all: sdlpl/examples/pong_gpu.pl at 55dde69de685202b6bdbcfa476c973f6eba0a45f · kwon-young/sdlpl · GitHub
- Cairo drawing in a SDL surface. Also a pong example: sdlpl/examples/pong2.pl at 55dde69de685202b6bdbcfa476c973f6eba0a45f · kwon-young/sdlpl · GitHub
Unfortunately, I don’t seem to be able to publish the pack:
$ swipl pack publish 'https://github.com/kwon-young/sdlpl'
Installation plan:
Install sdlpl at version 0.0.0 from https://github.com/kwon-young/sdlpl
Download packs? Y/n?
Cloning into '/tmp/swipl_pack_1164548_1/sdlpl'...
Already up to date.
The following packs have post install scripts:
Build sdlpl in directory /tmp/swipl_pack_1164548_1/sdlpl
Run scripts? Y/n?
% Building pack sdlpl in directory /tmp/swipl_pack_1164548_1/sdlpl
-- The CXX compiler identification is GNU 16.1.1
....
[12/12] Linking CXX shared module /tmp/swipl_pack_1164548_1/sdlpl/lib/x86_64-linux/sdl.so
-- Install configuration: "Release"
Test project /tmp/swipl_pack_1164548_1/sdlpl/build
Start 1: sdl
1/1 Test #1: sdl .............................. Passed 35.91 sec
% 100% tests passed, 0 tests failed out of 1
%
% Total Test time (real) = 35.91 sec
% Contacting server at https://www.swi-prolog.org/pack/query ... ok
ERROR: [Thread main] Pack sdlpl at version 0.3.0 failed for unknown reason (false)
@jan would you have an idea why it failed ?