Quick questions

16 views
Skip to first unread message

jonsul

unread,
Dec 16, 2010, 6:08:00 AM12/16/10
to jslibs
Love the work being done! Long overdue.
Anyways how mature are the openGL and SDL wrappers? I wanted to do an
example using one of these. Lastly is there any plans for wrappers to
a gui library like GTK or wxWidgets? Then I would be completely set to
use jslibs on my projects^^

take care

soubok

unread,
Dec 16, 2010, 7:58:15 AM12/16/10
to jsl...@googlegroups.com
Hi,

SDL and OpenGL wrappers are working on WIN32 and has not been ported yet for Linux of MacOS.
OpenGL wrapper is quite simple, it just wraps OpenGL functions for JavaScript (including Shader Objects). eg. http://www.youtube.com/watch?v=iXFGSAdUsyk
I don't know exactly how many percent of the OpenGL API is wrapped, but adding missing function can be done quickly.

I plane to add an OpenGL-based gui library only (any suggestion is welcome). For desktop-gui applications, you can refer to the GLUEscript (wxJavaScript) project.

Regards,
Franck.

jonsul

unread,
Dec 16, 2010, 6:52:02 PM12/16/10
to jslibs
Sounds awesome! What's the priority of the porting to linux? It's my
main platform but I can make do with windows for a while. I did check
out gluescript, but I think I'll wait for jslibs. I haven't found
anything so simple to just set up and make work as fast as it was for
jslibs. I literally downloaded it, read a few docs and had a
helloworld in 5min. I think I'll work with sdl till, making a few
quick demos until the openGL gui library is done. I can't wait^^
I've checked out several things like this including the .net ones, but
this project has the most feeling of huge potential behind it.

By the way, any plans to go the CommonJS route or are you going lone
wolf? lol

soubok

unread,
Dec 18, 2010, 6:38:59 AM12/18/10
to jsl...@googlegroups.com
The priority of porting OpenGL and SDL modules (wrappers) on Linux is not very high because:
- Linux is not my main platform, this is why I only ported modules I can run through a remote console (modules without GUI).
- At the moment I have a lot of work in moving to the latest Mozilla's JavaScript engine (JeagerMonkey).

I think that support of CommonJS is necessary. I also think that CommonJS can be implemented over jslibs as a thin layer.

Regards,
Franck.

jonsul

unread,
Dec 24, 2010, 1:05:11 AM12/24/10
to jslibs
Ah I see. That's definitely a big priority, maybe after the holidays I
can help with porting the wrappers. How far into moving to
JeagerMonkey are you?
Reply all
Reply to author
Forward
0 new messages