JSNI and method pointer

2012-08-16 Thread Harold Comere
Hi all, I have a small JSNI method calling a javascript method. public native void requestAnimFrame() /*-{ window.requestAnimationFrame( ); }-*/; but window.requestAnimationFrame takes a function pointer for parameter as a callback. So i need to give as parameter of the JSNI method

Re: JSNI and method pointer

2012-08-16 Thread Alfredo Quiroga-Villamil
method. public native void requestAnimFrame() /*-{ window.requestAnimationFrame( ); }-*/; but window.requestAnimationFrame takes a function pointer for parameter as a callback. So i need to give as parameter of the JSNI method a pointer to my JAVA callback function. Basicaly, i want

Re: JSNI and method pointer

2012-08-16 Thread Harold Comere
a function pointer for parameter as a callback. So i need to give as parameter of the JSNI method a pointer to my JAVA callback function. Basicaly, i want to do : public native void requestAnimFrame( function pointer ?? func) /*-{ window.requestAnimationFrame( func ); }-*/; public void