소스 검색

Merge pull request #1306 from jMonkeyEngine/envcam-viewports

Expose ViewPorts
Daniel Perano 5 년 전
부모
커밋
ff58abca3d
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      jme3-core/src/main/java/com/jme3/environment/EnvironmentCamera.java

+ 9 - 0
jme3-core/src/main/java/com/jme3/environment/EnvironmentCamera.java

@@ -249,6 +249,15 @@ public class EnvironmentCamera extends BaseAppState {
         }
     }
 
+    /**
+     * Returns an array of the 6 ViewPorts used to capture the snapshot.
+     * Note that this will be null until after initialize() is called.
+     * @return array of ViewPorts
+     */
+    public ViewPort[] getViewPorts(){
+        return viewports;
+    }
+
     @Override
     protected void initialize(Application app) {
         this.backGroundColor = app.getViewPort().getBackgroundColor();