|
@@ -10,11 +10,11 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
== OSRViewPort
|
|
== OSRViewPort
|
|
|
|
|
|
|
|
-The OSRViewPort allows you to create a movable, resizable ViewPort with the ability to control the camera's rotation and zoom features via mouse input.+
|
|
|
|
|
-+
|
|
|
|
|
|
|
+The OSRViewPort allows you to create a movable, resizable ViewPort with the ability to control the camera's rotation and zoom features via mouse input.
|
|
|
|
|
+
|
|
|
To initialize the OSRViewPort you can call one of the 3 standard constructors as shown in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.
|
|
To initialize the OSRViewPort you can call one of the 3 standard constructors as shown in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.
|
|
|
|
|
|
|
|
-*Constructor 1:*+
|
|
|
|
|
|
|
+*Constructor 1:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -29,7 +29,7 @@ OSRViewPort vp = new OSRViewPort(screen, “vp”, new Vector2f(15, 15));
|
|
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
-*Constructor 2:*+
|
|
|
|
|
|
|
+*Constructor 2:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -43,7 +43,7 @@ OSRViewPort vp = new OSRViewPort(screen, “vp”, new Vector2f(15, 15),
|
|
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
-*Constructor 3:*+
|
|
|
|
|
|
|
+*Constructor 3:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -70,6 +70,7 @@ vp.setOSRBridge(Node newScene, int renderWidth, int renderHeight);
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
=== The ViewPort’s Camera control methods:
|
|
=== The ViewPort’s Camera control methods:
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|