Examples of loadImage()


Examples of org.newdawn.slick.opengl.LoadableImageData.loadImage()

   * @throws SlickException Indicates we were unable to locate the resource
   */
  private void build(String ref, int filter, int tileSize) throws SlickException {
    try {
      final LoadableImageData data = ImageDataFactory.getImageDataFor(ref);
      final ByteBuffer imageBuffer = data.loadImage(ResourceLoader.getResourceAsStream(ref), false, null);
      final int dataWidth = data.getTexWidth();
      final int dataHeight = data.getTexHeight();
     
      realWidth = width = data.getWidth();
      realHeight = height = data.getHeight();
View Full Code Here

Examples of org.newdawn.slick.opengl.LoadableImageData.loadImage()

   * @throws SlickException Indicates we were unable to locate the resource
   */
  private void build(String ref, int filter, int tileSize) throws SlickException {
    try {
      final LoadableImageData data = ImageDataFactory.getImageDataFor(ref);
      final ByteBuffer imageBuffer = data.loadImage(ResourceLoader.getResourceAsStream(ref), false, null);
      build(data, imageBuffer, filter, tileSize);
    } catch (IOException e) {
      throw new SlickException("Failed to load: "+ref, e);
    }
  }
View Full Code Here

Examples of org.newdawn.slick.opengl.LoadableImageData.loadImage()

        flip = false;
        data = new ImageIOImageData();
      }
     
      try {
        bufs[i] = data.loadImage(ResourceLoader.getResourceAsStream(refs[i]), flip, false, null);
      } catch (Exception e) {
        Log.error(e);
        throw new SlickException("Failed to set the icon");
      }
    }
View Full Code Here

Examples of org.newdawn.slick.opengl.LoadableImageData.loadImage()

   * @throws SlickException Indicates we were unable to locate the resource
   */
  private void build(String ref, int filter, int tileSize) throws SlickException {
    try {
      final LoadableImageData data = ImageDataFactory.getImageDataFor(ref);
      final ByteBuffer imageBuffer = data.loadImage(ResourceLoader.getResourceAsStream(ref), false, null);
      build(data, imageBuffer, filter, tileSize);
    } catch (IOException e) {
      throw new SlickException("Failed to load: "+ref, e);
    }
  }
View Full Code Here

Examples of org.newdawn.slick.opengl.LoadableImageData.loadImage()

        flip = false;
        data = new ImageIOImageData();
      }
     
      try {
        bufs[i] = data.loadImage(ResourceLoader.getResourceAsStream(refs[i]), flip, false, null);
      } catch (Exception e) {
        Log.error(e);
        throw new SlickException("Failed to set the icon");
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.