Package de.lessvoid.nifty.spi.render

Examples of de.lessvoid.nifty.spi.render.RenderImage


  }

  public RenderImage getImage(final String filename, final boolean filterLinear) {
    String key = buildName(filename, filterLinear);
    if (imageCache.containsKey(key)) {
      RenderImage existingEntry = imageCache.get(key).addReference();
      log.finer(key + " exists [" + imageCache.get(key).references + "]");
      return existingEntry;
    }
    NiftyStopwatch.start();

    RenderImage createImage = renderDevice.createImage(filename, filterLinear);
    ReferencedCountedImage newEntry = new ReferencedCountedImage(filename, filterLinear, createImage);
    backReference.put(createImage, newEntry);
    imageCache.put(key, newEntry);
    log.finer(key + " create [" + imageCache.get(key).references + "]");
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.spi.render.RenderImage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.