[pro] Help with Rendering GUIs from Lisp

Alexander Repenning ralex at cs.colorado.edu
Wed May 18 15:58:32 UTC 2011


On May 16, 2011, at 7:55 AM, Matthew Swank wrote:

> I am porting the Morphic GUI tool kit, Or more specifically the subset
> that is implemented in morphic.js:
> http://www.chirp.scratchr.org/blog/?p=34.
> 
> I am a little overwhelmed by the options for rendering the GUI to screen.
> The JS implementation uses html5 canvas elements where Canvases,
> Images, and Contexts are rolled into or are part of the same object.
> 
> In am a relative novice in graphics programming, so it's hard for me
> to differentiate among the merits of the various bindings available to
> common lisp to do this.  However, using the html canvas code as
> guide, I am gravitating towards some sort of high level canvas that
> writes to a lower level back end (vecto -> lispbuilder-sdl, cl-cairo).
> 
> Does anyone have guidance on the best way to approach this? Should I
> consider "raw" SDL surfaces, perhaps with SDL_ttf for font rendering?
> Is OpenGL a reasonable option for what is essentially a 2d
> environment?
> 
> Matt


Not completely sure I understand what you need. The XMLisp approach (http://code.google.com/p/xmlisp/) is to create GUIs as DOM-like structures of 2D (Cocoa controls) and 3D (OpenGL views). The controls are platform native (OS X, Windows). Control actions are written in Lisp in a way to make it quite simple to mix 2D and 3D content.

Alex


Prof. Alexander Repenning

University of Colorado
Computer Science Department
Boulder, CO 80309-430

vCard: http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/pro/attachments/20110518/c3fa19ac/attachment.html>


More information about the pro mailing list