private void notifyReshape(ViewPort vp, int w, int h) { List<SceneProcessor> processors = vp.getProcessors(); for (SceneProcessor proc : processors) { if (!proc.isInitialized()) { proc.initialize(this, vp); } else { proc.reshape(vp, w, h); } } }
/** * Removes all {@link SceneProcessor scene processors} from this * ViewPort. * * @see SceneProcessor */ public void clearProcessors() { for (SceneProcessor proc : processors) { proc.cleanup(); } processors.clear(); }
if (prof != null) prof.vpStep(VpStep.PreFrame, vp, null); for (SceneProcessor proc : processors.getArray()) { if (!proc.isInitialized()) { proc.initialize(this, vp); proc.setProfiler(this.prof); if (prof != null) prof.spStep(SpStep.ProcPreFrame, proc.getClass().getSimpleName()); proc.preFrame(tpf); for (SceneProcessor proc : processors.getArray()) { if (prof != null) prof.spStep(SpStep.ProcPostQueue, proc.getClass().getSimpleName()); proc.postQueue(vp.getQueue()); for (SceneProcessor proc : processors.getArray()) { if (prof != null) prof.spStep(SpStep.ProcPostFrame, proc.getClass().getSimpleName()); proc.postFrame(vp.getOutputFrameBuffer());
sp.reshape(vp, width, height);
if (!proc.isInitialized()) { proc.initialize(this, vp); proc.preFrame(tpf); proc.postQueue(vp.getQueue()); proc.postFrame(vp.getOutputFrameBuffer());
sp.reshape(vp, width, height);
if (prof != null) prof.vpStep(VpStep.PreFrame, vp, null); for (SceneProcessor proc : processors.getArray()) { if (!proc.isInitialized()) { proc.initialize(this, vp); proc.setProfiler(this.prof); if (prof != null) prof.spStep(SpStep.ProcPreFrame, proc.getClass().getSimpleName()); proc.preFrame(tpf); for (SceneProcessor proc : processors.getArray()) { if (prof != null) prof.spStep(SpStep.ProcPostQueue, proc.getClass().getSimpleName()); proc.postQueue(vp.getQueue()); for (SceneProcessor proc : processors.getArray()) { if (prof != null) prof.spStep(SpStep.ProcPostFrame, proc.getClass().getSimpleName()); proc.postFrame(vp.getOutputFrameBuffer());
private void notifyReshape(ViewPort vp, int w, int h) { List<SceneProcessor> processors = vp.getProcessors(); for (SceneProcessor proc : processors) { if (!proc.isInitialized()) { proc.initialize(this, vp); } else { proc.reshape(vp, w, h); } } }
sp.reshape(vp, width, height);
/** * Removes a {@link SceneProcessor} from this ViewPort. * <p> * The processor will no longer receive events occurring to this ViewPort. * * @param processor The processor to remove * * @see SceneProcessor */ public void removeProcessor(SceneProcessor processor){ if (processor == null) { throw new IllegalArgumentException( "Processor cannot be null." ); } processors.remove(processor); processor.cleanup(); }
private void notifyReshape(ViewPort vp, int w, int h) { List<SceneProcessor> processors = vp.getProcessors(); for (SceneProcessor proc : processors) { if (!proc.isInitialized()) { proc.initialize(this, vp); } else { proc.reshape(vp, w, h); } } }
sp.reshape(vp, width, height);
/** * Removes all {@link SceneProcessor scene processors} from this * ViewPort. * * @see SceneProcessor */ public void clearProcessors() { for (SceneProcessor proc : processors) { proc.cleanup(); } processors.clear(); }
/** * Removes a {@link SceneProcessor} from this ViewPort. * <p> * The processor will no longer receive events occurring to this ViewPort. * * @param processor The processor to remove * * @see SceneProcessor */ public void removeProcessor(SceneProcessor processor){ if (processor == null) { throw new IllegalArgumentException( "Processor cannot be null." ); } processors.remove(processor); processor.cleanup(); }
/** * Removes all {@link SceneProcessor scene processors} from this * ViewPort. * * @see SceneProcessor */ public void clearProcessors() { for (SceneProcessor proc : processors) { proc.cleanup(); } processors.clear(); }
/** * Removes a {@link SceneProcessor} from this ViewPort. * <p> * The processor will no longer receive events occurring to this ViewPort. * * @param processor The processor to remove * * @see SceneProcessor */ public void removeProcessor(SceneProcessor processor){ if (processor == null) { throw new IllegalArgumentException( "Processor cannot be null." ); } processors.remove(processor); processor.cleanup(); }