public void cleanup() { if (viewPort != null) { // reseting the viewport camera viewport to its initial value viewPort.getCamera().resize(originalWidth, originalHeight, true); viewPort.getCamera().setViewPort(left, right, bottom, top); viewPort.setOutputFrameBuffer(outputBuffer); viewPort = null; for (Filter filter : filters) { filter.cleanup(renderer); } } }
/** * removes this filters from the filters list * * @param filter */ public void removeFilter(Filter filter) { filters.remove(filter); filter.cleanup(renderer); updateLastFilterIndex(); }