refactor backend Adapter classes
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package org.oscim.ios;
|
||||
|
||||
import org.oscim.backend.CanvasAdapter;
|
||||
import org.oscim.backend.GLAdapter;
|
||||
import org.oscim.gdx.GdxMap;
|
||||
import org.oscim.ios.backend.IosGLAdapter;
|
||||
@@ -50,8 +49,8 @@ public class RobovmLauncher extends IOSApplication.Delegate {
|
||||
|
||||
NSAutoreleasePool pool = new NSAutoreleasePool();
|
||||
System.setProperty(org.slf4j.impl.SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "TRACE");
|
||||
CanvasAdapter.g = IosGraphics.get();
|
||||
GLAdapter.g = new IosGLAdapter();
|
||||
IosGraphics.init();
|
||||
GLAdapter.init(new IosGLAdapter());
|
||||
|
||||
UIApplication.main(argv, null, RobovmLauncher.class);
|
||||
pool.drain();
|
||||
|
||||
@@ -16,6 +16,10 @@ public class IosGraphics extends CanvasAdapter {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
g = INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Canvas getCanvas() {
|
||||
return new IosCanvas();
|
||||
|
||||
Reference in New Issue
Block a user