Minor rearrangement.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3833 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-02-05 23:08:55 +00:00
parent 17987537f4
commit f749460fe7
+3 -3
View File
@@ -251,14 +251,14 @@ public class JmeApp
_display.setVSyncEnabled(true);
// create a camera
float width = _display.getWidth(), height = _display.getHeight();
_camera = _display.getRenderer().createCamera((int)width, (int)height);
int width = _display.getWidth(), height = _display.getHeight();
_camera = _display.getRenderer().createCamera(width, height);
// start with a black background
_display.getRenderer().setBackgroundColor(ColorRGBA.black);
// set up the camera
_camera.setFrustumPerspective(45.0f, width / height, 1, 10000);
_camera.setFrustumPerspective(45.0f, width/(float)height, 1, 10000);
Vector3f loc = new Vector3f(0.0f, 0.0f, 25.0f);
Vector3f left = new Vector3f(-1.0f, 0.0f, 0.0f);
Vector3f up = new Vector3f(0.0f, 1.0f, 0.0f);