summaryrefslogtreecommitdiffstats
path: root/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/joglutils/msg/nodes/PerspectiveCamera.java')
-rw-r--r--src/net/java/joglutils/msg/nodes/PerspectiveCamera.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java b/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
index b72507a..50c646b 100644
--- a/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
+++ b/src/net/java/joglutils/msg/nodes/PerspectiveCamera.java
@@ -91,7 +91,11 @@ public class PerspectiveCamera extends Camera {
return vertFOVScale * DEFAULT_HEIGHT_ANGLE;
}
- public void doAction(Action action) {
- action.visit(this);
+ public void render(GLRenderAction action) {
+ // FIXME: unclear whether we should be doing this, or whether we
+ // should have a mechanism which doesn't require mutation of the
+ // camera
+ setAspectRatio(action.getCurAspectRatio());
+ doAction(action);
}
}