Skip to content

Instantly share code, notes, and snippets.

@kirillp
Created January 27, 2017 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirillp/97aa5a6fec83b009473b73823a4bfdf3 to your computer and use it in GitHub Desktop.
Save kirillp/97aa5a6fec83b009473b73823a4bfdf3 to your computer and use it in GitHub Desktop.
@ObjCClassName("SceneViewController")
public class SceneViewController extends GLKViewController {
protected SceneViewController(Pointer peer) {
super(peer);
}
@Selector("alloc")
public static native SceneViewController alloc();
@Selector("init")
public native SceneViewController init();
@Override
public long supportedInterfaceOrientations() {
return myAllowedOrientations;
}
...
}
@ObjCClassName("MySceneViewController")
public class MySceneViewController extends SceneViewController {
protected MySceneViewController(Pointer peer) {
super(peer);
}
@Selector("alloc")
public static native MySceneViewController alloc();
@Selector("init")
public native MySceneViewController init();
@Override
protected void logFps(float fps, int frames, double dT) {
log("Fps = " + fps + ", " + frames + " in " + dT + " seconds");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment