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
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
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