[CM] S7 wrapper around SDL

chohag at jtan.com chohag at jtan.com
Mon Jun 24 11:58:19 PDT 2024


A project I am working on needs to use SDL and OpenGL (among others)
from S7 and so I am writing an S7 interface to SDL, which I have
included below.

The files can be loaded without any fuss into a fresh S7 context.
The compiler and linker settings are hardcoded to values valid on
OpenBSD at the bottom of the SCM files.

I'm sending it to this list aside from my main project, which is a
huge mess, to get feedback on my implementation before anything
gets too set in stone. What's good, what's bad, what could be done
better or just differently?

Any thoughts or suggestions are very welcome, don't hold back!

I have others, a matrix maths library, nuklear GUI and some of my
own modules, and I think I will need sqlite very soon, but SDL will
do for now and this will also inform how I get on with those.

Cheers,

Matthew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: s7sdl-glthread.h
Type: text/x-c
Size: 774 bytes
Desc: s7sdl-glthread.h
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20240624/b608db81/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s7sdl-x11.scm
Type: application/zlib
Size: 2466 bytes
Desc: s7sdl-x11.scm
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20240624/b608db81/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s7sdl.scm
Type: application/zlib
Size: 38670 bytes
Desc: s7sdl.scm
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20240624/b608db81/attachment-0005.bin>


More information about the Cmdist mailing list