예제 #1
0
 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);
     }
   }
 }
예제 #2
0
 /**
  * removes this filters from the filters list
  *
  * @param filter
  */
 public void removeFilter(Filter filter) {
   filters.remove(filter);
   filter.cleanup(renderer);
   updateLastFilterIndex();
 }