|
List Info
Thread: Cairo + SDL
|
|
| Cairo + SDL |
  United Kingdom |
2008-04-13 09:06:12 |
Hi all,
Back in January, me and Michael Bridgen took two pieces of
code:
- Mike Anderson's 2006 LGPL'd Cairo interface, and
- Brad Watson's 2006 GPL'd SDL interface
and integrated them. We also built a couple of lightweight
demos -
Michael's interest is in a Raskin-style zooming user
interface, and my
interest is in a lightweight, shoes-style UI for use, among
other
things, with my Openmoko phone.
The code's been sitting idle for a while, and with Francois'
GSoC
project, now seems a good time to let it go free.
The code is in a darcs repository,
http://www.eighty-twenty.org/~tonyg/Darcs/gst-zowie/
Roads into the code start from:
- demo.st: simple cairo/sdl test
- buttondemo.st: My widget set and test program
- zowie.st: MikeB's zooming-UI and test program
A note on licensing: Since we used Brad's GPLd work, our
code also falls
under the GPL. Share and enjoy!
Comments welcome. One thing we'd like to see done is a
split-out (and
clean-up) of the Cairo+SDL library code from the code that
uses it. We
don't mind if the code forks, or if people would prefer to
submit
patches - either way is fine.
Regards,
Tony
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|
|
| Re: Cairo + SDL |
  Italy |
2008-04-15 14:14:25 |
Tony Garnock-Jones wrote:
> Hi all,
>
> Back in January, me and Michael Bridgen took two pieces
of code:
[snip]
Thanks! It does not work on Mac OS, but it's a nice feat.
> - Mike Anderson's 2006 LGPL'd Cairo interface, and
> - Brad Watson's 2006 GPL'd SDL interface
Brad Watson assigned his code to the FSF so it's not
impossible to
change the license. It makes sense since SDL itself is
under the LGPL.
I'll ask him and the FSF people about it.
Paolo
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|
|
| Re: Cairo + SDL |
  United Kingdom |
2008-04-16 04:35:53 |
Hi Paolo,
Paolo Bonzini wrote:
> Thanks! It does not work on Mac OS, but it's a nice
feat.
It does (lots of the dev work was done on OS X leopard) -
but not with
the out-of-the-box gst. What's required is a gst binary that
#includes
sdlmain.
I've attached the stub main file along with the changes to
Makefile.am.
I've no idea how this might be cleanly added to the main
tree
> Brad Watson assigned his code to the FSF so it's not
impossible to
> change the license. It makes sense since SDL itself is
under the LGPL.
> I'll ask him and the FSF people about it.
That would be good. Thank you!
Tony
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|
|
|
|
| Re: Cairo + SDL |
  Switzerland |
2008-04-16 05:06:36 |
Tony Garnock-Jones wrote:
> Hi Paolo,
>
> Paolo Bonzini wrote:
>> Thanks! It does not work on Mac OS, but it's a
nice feat.
>
> It does (lots of the dev work was done on OS X leopard)
- but not with
> the out-of-the-box gst. What's required is a gst binary
that #includes
> sdlmain.
Wow, that's disgusting! :-P
Thanks again,
Paolo
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|
|
| Re: Cairo + SDL |
  Switzerland |
2008-04-16 05:16:13 |
>> It does (lots of the dev work was done on OS X
leopard) - but not with
>> the out-of-the-box gst. What's required is a gst
binary that #includes
>> sdlmain.
>
> Wow, that's disgusting! :-P
Seriously, I think we can make a different package
(something like
CocoaApp) that does the same things as SDLmain.m (see
http://fisheye
1.cenqua.com/browse/~raw,r=1.1/twin-e/twin-e/SDLMain.m
for
the source), and make it a prerequisite of SDL on Mac OS X.
Paolo
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|
|
| Re: Cairo + SDL |
  United Kingdom |
2008-04-16 06:26:59 |
Paolo Bonzini wrote:
> Wow, that's disgusting! :-P
It most certainly is!
Perhaps the meat of main.c could be put in a
libgstmain.a/libgstmain.so,
with a tiny main.c that calls into the library? That way,
the SDL
support package could build a custom interpreter which
linked both
against libgstmain and into the SDL stuff in the right way,
without
having to change the gst build process or abuse the real
main.c at all.
Tony
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|
|
| Re: Cairo + SDL |
  United Kingdom |
2008-04-16 06:30:40 |
Paolo Bonzini wrote:
> Seriously, I think we can make a different package
(something like
> CocoaApp) that does the same things as SDLmain.m (see
> http://fisheye
1.cenqua.com/browse/~raw,r=1.1/twin-e/twin-e/SDLMain.m
for
> the source), and make it a prerequisite of SDL on Mac
OS X.
That is a good idea.
We might want to retain two binaries, though, one with and
one without
SDL support: one binary might not be sufficient for both
shell-level
scripting and SDL programming, since for scripting use of
gst, you don't
want to constantly register and deregister applications with
the gui
system when you don't intend to act like a proper gui app -
it's heavy,
and distracting to users.
Tony
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|
|
[1-7]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|