Provide the camera handler rather than the camera.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3753 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-11-09 22:34:15 +00:00
parent 35caa3a79f
commit 4a1b366cd8
3 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -494,8 +494,8 @@ public class JmeApp
return _display.getRenderer();
}
public Camera getCamera () {
return _camera;
public CameraHandler getCameraHandler () {
return _camhand;
}
public Node getGeometry () {
+4 -3
View File
@@ -22,13 +22,14 @@
package com.threerings.jme;
import com.jme.input.InputHandler;
import com.jme.renderer.Camera;
import com.jme.renderer.Renderer;
import com.jme.scene.Node;
import com.jme.system.DisplaySystem;
import com.jmex.bui.BRootNode;
import com.threerings.jme.camera.CameraHandler;
/**
* Provides access to the various bits needed by things that operate in
* JME land.
@@ -41,8 +42,8 @@ public interface JmeContext
/** Returns the renderer being used to draw everything. */
public Renderer getRenderer ();
/** Returns the camera being used to view the scene. */
public Camera getCamera ();
/** Returns the handler for the camera being used to view the scene. */
public CameraHandler getCameraHandler ();
/** Returns the main geometry of our scene graph. */
public Node getGeometry ();
@@ -23,7 +23,6 @@ package com.threerings.jme.client;
import com.jmex.bui.BRootNode;
import com.jme.input.InputHandler;
import com.jme.renderer.Camera;
import com.jme.renderer.Renderer;
import com.jme.scene.Node;
import com.jme.system.DisplaySystem;
@@ -42,6 +41,7 @@ import com.threerings.crowd.client.PlaceView;
import com.threerings.crowd.util.CrowdContext;
import com.threerings.jme.JmeContext;
import com.threerings.jme.camera.CameraHandler;
/**
* The Jabber client takes care of instantiating all of the proper
@@ -187,8 +187,8 @@ public class JabberClient
return _app.getContext().getDisplay();
}
public Camera getCamera () {
return _app.getContext().getCamera();
public CameraHandler getCameraHandler () {
return _app.getContext().getCameraHandler();
}
public Node getGeometry () {