Skip to content

ExampleCamera

da772 edited this page Feb 27, 2020 · 4 revisions

Create Camera

Before selecting a camera, you must select which type of camera you want to create, either Orthographic or Perspective. To create a camera you must create a camera controller which will create a camera for you.

TestApplication.java ( or any other custom application class)

        CameraController camera
        @Override
	protected void OnInit() {
		System.out.println(title+" Init!");
                camera = new CameraController.Orthographic(16.f/9.f); // The orthographic camera controller
                                                                      // takes in an aspect ratio
	}

Previous | Next

Clone this wiki locally