|
@@ -342,6 +342,17 @@ public class RenderManager {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void notifyRescale(ViewPort vp, float x, float y) {
|
|
|
+ List<SceneProcessor> processors = vp.getProcessors();
|
|
|
+ for (SceneProcessor proc : processors) {
|
|
|
+ if (!proc.isInitialized()) {
|
|
|
+ proc.initialize(this, vp);
|
|
|
+ } else {
|
|
|
+ proc.rescale(vp, x, y);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Internal use only.
|
|
|
* Updates the resolution of all on-screen cameras to match
|
|
@@ -374,6 +385,18 @@ public class RenderManager {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public void notifyRescale(float x, float y) {
|
|
|
+ for (ViewPort vp : preViewPorts) {
|
|
|
+ notifyRescale(vp, x, y);
|
|
|
+ }
|
|
|
+ for (ViewPort vp : viewPorts) {
|
|
|
+ notifyRescale(vp, x, y);
|
|
|
+ }
|
|
|
+ for (ViewPort vp : postViewPorts) {
|
|
|
+ notifyRescale(vp, x, y);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Sets the material to use to render all future objects.
|
|
|
* This overrides the material set on the geometry and renders
|