* fixed compile error with API change in ViewPort.setClearEnabled
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7616 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
31c2fdab15
commit
c874fee6fc
@ -191,7 +191,7 @@ public class OffScenePanel extends javax.swing.JPanel implements SceneProcessor
|
|||||||
// create a pre-view. a view that is rendered before the main view
|
// create a pre-view. a view that is rendered before the main view
|
||||||
viewPort = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", camera);
|
viewPort = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", camera);
|
||||||
viewPort.setBackgroundColor(ColorRGBA.DarkGray);
|
viewPort.setBackgroundColor(ColorRGBA.DarkGray);
|
||||||
viewPort.setClearEnabled(true);
|
viewPort.setClearFlags(true, true, true);
|
||||||
viewPort.addProcessor(this);
|
viewPort.addProcessor(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ public class ScenePreviewProcessor implements SceneProcessor {
|
|||||||
// create a pre-view. a view that is rendered before the main view
|
// create a pre-view. a view that is rendered before the main view
|
||||||
offView = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", offCamera);
|
offView = SceneApplication.getApplication().getRenderManager().createPreView("Offscreen View", offCamera);
|
||||||
offView.setBackgroundColor(ColorRGBA.DarkGray);
|
offView.setBackgroundColor(ColorRGBA.DarkGray);
|
||||||
offView.setClearEnabled(true);
|
offView.setClearFlags(true, true, true);
|
||||||
|
|
||||||
offView.addProcessor(this);
|
offView.addProcessor(this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user