29 lines
1.1 KiB
Java
29 lines
1.1 KiB
Java
|
package osg.AndroidExample;
|
||
|
|
||
|
public class osgNativeLib {
|
||
|
|
||
|
static {
|
||
|
System.loadLibrary("osgNativeLib");
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param width the current view width
|
||
|
* @param height the current view height
|
||
|
*/
|
||
|
public static native void init(int width, int height);
|
||
|
public static native void step();
|
||
|
public static native void clearContents();
|
||
|
public static native void mouseButtonPressEvent(float x,float y, int button);
|
||
|
public static native void mouseButtonReleaseEvent(float x,float y, int button);
|
||
|
public static native void mouseMoveEvent(float x,float y);
|
||
|
public static native void keyboardDown(int key);
|
||
|
public static native void keyboardUp(int key);
|
||
|
public static native void setClearColor(int red,int green, int blue);
|
||
|
public static native int[] getClearColor();
|
||
|
public static native void loadObject(String address);
|
||
|
public static native void loadObject(String address,String name);
|
||
|
public static native void unLoadObject(int number);
|
||
|
public static native String[] getObjectNames();
|
||
|
|
||
|
}
|