-
-
Save kirillp/97aa5a6fec83b009473b73823a4bfdf3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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