Hey,
WebGL does not seem to work anymore with CAAT:
https://github.com/hyperandroid/CAAT/issues/101
BTW, are Labels supported by WebGL? They always return undefined after
instantiation.
Arne
On 28/09/13 16:36, Benjamin Horn wrote:
> My code
> *<html> <body> <script src = "lib/caat.js"></script> <script> var
> director = new CAAT.Director().initializeGL( 100, // 100 pixels wide 100
> // 100 pixels across ); var scene= director.createScene(); var circle=
> new CAAT.ShapeActor(). setLocation(20,20). setSize(60,60).
> setFillStyle('#ff0000'). setStrokeStyle('#000000');
> scene.addChild(circle); director.loop(1); </script> </body> </html>
> *
>
> gives the following error
>
> *
> WebGL: INVALID_VALUE: vertexAttribPointer: bad size, stride or offset
> caat.js:13984 <
http://localhost/caat/lib/caat.js>
> WebGL: INVALID_OPERATION: uniformMatrix4fv: location is not from current
> program
> *
>
> on
>
> *Chrome: *
> *29.0.1547.76 m *
> *
> *
> *OS:*
> * Win 7 *
> *
> *
> *Caat: *
> *Version: 0.6 build: 5**Created on:*
> *DATE: 2013-07-01*
> *TIME: 04:58:32*
> <
https://lh5.googleusercontent.com/-w-vGwdupz3k/Ukbo0xjzXnI/AAAAAAAAABA/xVOOEXDlgeo/s1600/caat.JPG>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> With simple *initialize it works as expected.*
>
> --
> You received this message because you are subscribed to the Google
> Groups "CAAT javascript framework" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
caatjs+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.