Merge pull request #1306 from jMonkeyEngine/envcam-viewports

Expose ViewPorts
This commit is contained in:
Daniel Perano 2020-03-22 18:47:49 -07:00 committed by GitHub
commit ff58abca3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @Override
protected void initialize(Application app) { protected void initialize(Application app) {
this.backGroundColor = app.getViewPort().getBackgroundColor(); this.backGroundColor = app.getViewPort().getBackgroundColor();