// Path: gdx-vr-simpleroom-core/src/com/badlogic/gdx/vr/simpleroom/SimpleRoom.java
// public class SimpleRoom extends ApplicationAdapter implements VirtualRealityRenderListener {
// 
// 	private ModelBatch modelBatch;
// 	private ModelInstance modelInstance;
// 	private ModelInstance ground;
// 	private AssetManager assets;
// 	private Environment environment;
// 	private Stage3D stage;
// 
// 	@Override
// 	public void create() {
// 		assets = new AssetManager();
// 		String model = "Bambo_House.g3db";
// 		assets.load(model, Model.class);
// 		assets.finishLoading();
// 		modelInstance = new ModelInstance(assets.get(model, Model.class), new Matrix4().setToScaling(0.6f, 0.6f, 0.6f));
// 
// 		DefaultShader.Config config = new Config();
// 		config.defaultCullFace = GL20.GL_NONE;
// 		ShaderProvider shaderProvider = new DefaultShaderProvider(config);
// 		modelBatch = new ModelBatch(shaderProvider);
// 
// 		ModelBuilder builder = new ModelBuilder();
// 		float groundSize = 1000f;
// 		ground = new ModelInstance(builder.createRect(-groundSize, 0, groundSize, groundSize, 0, groundSize, groundSize, 0, -groundSize, -groundSize, 0, -groundSize, 0,
// 				1, 0, new Material(), Usage.Position | Usage.Normal), new Matrix4().setToTranslation(0, -0.01f, 0));
// 		environment = new Environment();
// 		environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));
// 		environment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));
// 
// 		VirtualReality.renderer.listeners.add(this);
// 		// VirtualReality.head.setCyclops(true);
// 	}
// 
// 	@Override
// 	public void render() {
// 		float deltaTime = Gdx.graphics.getDeltaTime();
// 
// 		if (Gdx.input.isKeyPressed(Input.Keys.W)) {
// 			VirtualReality.body.position.add(new Vector3(0, 0, -2).mul(VirtualReality.body.orientation).scl(deltaTime));
// 		}
// 		if (Gdx.input.isKeyPressed(Input.Keys.S)) {
// 			VirtualReality.body.position.add(new Vector3(0, 0, 2).mul(VirtualReality.body.orientation).scl(deltaTime));
// 		}
// 		if (Gdx.input.isKeyPressed(Input.Keys.A)) {
// 			VirtualReality.body.orientation.mulLeft(new Quaternion(Vector3.Y, 90f * deltaTime));
// 		}
// 		if (Gdx.input.isKeyPressed(Input.Keys.D)) {
// 			VirtualReality.body.orientation.mulLeft(new Quaternion(Vector3.Y, -90f * deltaTime));
// 		}
// 
// 		VirtualReality.update(Gdx.graphics.getDeltaTime());
// 		VirtualReality.renderer.render();
// 	}
// 
// 	@Override
// 	public void resize(int width, int height) {
// 		// TODO: resize VirtualReality
// 	}
// 
// 	@Override
// 	public void frameStarted() {
// 		Gdx.gl.glClearColor(0, 0, 0, 1);
// 		Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);
// 	}
// 
// 	@Override
// 	public void frameEnded() {
// 	}
// 
// 	@Override
// 	public void render(Camera camera) {
// 		modelBatch.begin(camera);
// 		modelBatch.render(ground, environment);
// 		modelBatch.render(modelInstance, environment);
// 		modelBatch.end();
// 	}
// }


import org.robovm.apple.foundation.NSAutoreleasePool;
import org.robovm.apple.uikit.UIApplication;
import com.badlogic.gdx.backends.iosrobovm.IOSApplication;
import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration;
import com.badlogic.gdx.vr.simpleroom.SimpleRoom;
package com.badlogic.gdx.vr.simpleroom;



public class IOSLauncher extends IOSApplication.Delegate {
    @Override
    protected IOSApplication createApplication() {
        IOSApplicationConfiguration config = new IOSApplicationConfiguration();
// Path: gdx-vr-simpleroom-core/src/com/badlogic/gdx/vr/simpleroom/SimpleRoom.java
// public class SimpleRoom extends ApplicationAdapter implements VirtualRealityRenderListener {
// 
// 	private ModelBatch modelBatch;
// 	private ModelInstance modelInstance;
// 	private ModelInstance ground;
// 	private AssetManager assets;
// 	private Environment environment;
// 	private Stage3D stage;
// 
// 	@Override
// 	public void create() {
// 		assets = new AssetManager();
// 		String model = "Bambo_House.g3db";
// 		assets.load(model, Model.class);
// 		assets.finishLoading();
// 		modelInstance = new ModelInstance(assets.get(model, Model.class), new Matrix4().setToScaling(0.6f, 0.6f, 0.6f));
// 
// 		DefaultShader.Config config = new Config();
// 		config.defaultCullFace = GL20.GL_NONE;
// 		ShaderProvider shaderProvider = new DefaultShaderProvider(config);
// 		modelBatch = new ModelBatch(shaderProvider);
// 
// 		ModelBuilder builder = new ModelBuilder();
// 		float groundSize = 1000f;
// 		ground = new ModelInstance(builder.createRect(-groundSize, 0, groundSize, groundSize, 0, groundSize, groundSize, 0, -groundSize, -groundSize, 0, -groundSize, 0,
// 				1, 0, new Material(), Usage.Position | Usage.Normal), new Matrix4().setToTranslation(0, -0.01f, 0));
// 		environment = new Environment();
// 		environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));
// 		environment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));
// 
// 		VirtualReality.renderer.listeners.add(this);
// 		// VirtualReality.head.setCyclops(true);
// 	}
// 
// 	@Override
// 	public void render() {
// 		float deltaTime = Gdx.graphics.getDeltaTime();
// 
// 		if (Gdx.input.isKeyPressed(Input.Keys.W)) {
// 			VirtualReality.body.position.add(new Vector3(0, 0, -2).mul(VirtualReality.body.orientation).scl(deltaTime));
// 		}
// 		if (Gdx.input.isKeyPressed(Input.Keys.S)) {
// 			VirtualReality.body.position.add(new Vector3(0, 0, 2).mul(VirtualReality.body.orientation).scl(deltaTime));
// 		}
// 		if (Gdx.input.isKeyPressed(Input.Keys.A)) {
// 			VirtualReality.body.orientation.mulLeft(new Quaternion(Vector3.Y, 90f * deltaTime));
// 		}
// 		if (Gdx.input.isKeyPressed(Input.Keys.D)) {
// 			VirtualReality.body.orientation.mulLeft(new Quaternion(Vector3.Y, -90f * deltaTime));
// 		}
// 
// 		VirtualReality.update(Gdx.graphics.getDeltaTime());
// 		VirtualReality.renderer.render();
// 	}
// 
// 	@Override
// 	public void resize(int width, int height) {
// 		// TODO: resize VirtualReality
// 	}
// 
// 	@Override
// 	public void frameStarted() {
// 		Gdx.gl.glClearColor(0, 0, 0, 1);
// 		Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);
// 	}
// 
// 	@Override
// 	public void frameEnded() {
// 	}
// 
// 	@Override
// 	public void render(Camera camera) {
// 		modelBatch.begin(camera);
// 		modelBatch.render(ground, environment);
// 		modelBatch.render(modelInstance, environment);
// 		modelBatch.end();
// 	}
// }


// Path: gdx-vr-simpleroom-ios/src/com/badlogic/gdx/vr/simpleroom/IOSLauncher.java
import org.robovm.apple.foundation.NSAutoreleasePool;
import org.robovm.apple.uikit.UIApplication;
import com.badlogic.gdx.backends.iosrobovm.IOSApplication;
import com.badlogic.gdx.backends.iosrobovm.IOSApplicationConfiguration;
import com.badlogic.gdx.vr.simpleroom.SimpleRoom;

package com.badlogic.gdx.vr.simpleroom;



public class IOSLauncher extends IOSApplication.Delegate {
    @Override
    protected IOSApplication createApplication() {
        IOSApplicationConfiguration config = new IOSApplicationConfiguration();
        return new IOSApplication(new SimpleRoom(), config);