[CM] S7 wrapper around SDL

chohag at jtan.com chohag at jtan.com
Thu Jul 4 01:23:23 PDT 2024


SDL is a means to an end not the goal so I wrote the wrapper to
support the small sliver of SDL that I need and left it alone
(progress since my last email: zero). In fact I originally obtained
an OpenGL context using xlib directly but for this project I thought
the portability would be nice despite the extra baggage so SDL was
sort of wedged in at the last minute.

I was hoping to get the code it's part of into a clean and practical
state to show off the use of s7sdl but of course that just slips
back ever further, so I've extracted the relevant parts from that
into their own demo:

        git clone http://zeus.jtan.com/~chohag/balls.git

There's a lot in there that's not particularly relevant (not to
mention incomplete) because I didn't plan on making something new
for this demo: I've only stripped out some parts that were wholly
unnecessary such as fonts and tidied up a bit. The main addition
to the SDL wrapper itself is the draw tree implementation split
between balls.w and draw.w and of course the event handler.

Matthew

Iain Duncan writes:
> --00000000000078c0c4061c44f3c4
> Content-Type: text/plain; charset="UTF-8"
> Content-Transfer-Encoding: quoted-printable
>
> Very cool, I looked into SDL a while back and am interested to see how this
> progresses! Please do keep us posted here. :-)
>
> iain
>
> On Tue, Jun 25, 2024 at 2:29=E2=80=AFAM <bil at ccrma.stanford.edu> wrote:
>
> > That's an interesting project!  I don't know anything
> > about SDL, so I can't offer any sage advice.  On the
> > matrix library, there's also the libgsl stuff in the
> > s7 tarball.  If you're writing the matrix functions in Scheme
> > and notice anything that seems unnaturally slow,
> > please let me know.  Good Luck with SDL/OpenGL (I was
> > pleased to see openGL in use!)
> >
> > _______________________________________________
> > Cmdist mailing list
> > Cmdist at ccrma.stanford.edu
> > https://cm-mail.stanford.edu/mailman/listinfo/cmdist
> >


More information about the Cmdist mailing list