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