Hi,
I'm want to embed the JavaScriptCore into my application but I have some problems. So far I only found the JSPong example for embedding which didn't answer my question.

I want to create a simple Vector3f class which can be used in scripts like the String or Array types. But I couldn't figure out how to set it up so that I can create objects with "new". I want the class to work like this example.

        var a = new Vector3f(0,1,0);
        var b = new Vector3f(1,1,1);
        
        var c = a.add(b);

Is that possible with JavaScriptCore?

Bye,
Martin
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to