Hi,

While Wt supports 3D through the class WGLWidget, which maps OpenGL calls
to C++, Three.js seems to be a utility library that offers higher level
primitives to the developer. So to create a C++ API you'll have to
investigate the Three.js API and find a suitable way to represent it in C++
(which may be non-trivial) doJavaScript() and JSlots() are indeed the Wt
primitives that you'll have to use to generate the appropriate JavaScript
calls.

So maybe the WGLWidget.C can be a source of inspiration?

BR,
Wim.



2013/1/4 Rashad M <mohammedrasha...@gmail.com>

> Hi
>
> I need to integrate Three.js into Wt. So that it can be available the same
> way jQuery is available. currently I am using doJavaScript() and friends
> where i need Three.js help.
>
> But I would like to write cpp functions for my work and let Three.js sit
> in background and enjoy ;-)
>
> Can any of you throw some light on it so that I could get into the ship.
> Any example of how a JS library is wrapped.?
>
> What is the best way to do it?
>
> Ofcourse, I will publish the code under appropriate license to be merged
> with Wt source code.
>
>
>
>  --
> Regards,
>    Rashad
>
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to