Examples of GwtFileHandle


Examples of com.badlogic.gdx.backends.gwt.GwtFileHandle

  String color = make(r, g, b, a);
  static Blending blending;
  CanvasPixelArray pixels;

  public Pixmap (FileHandle file) {
    GwtFileHandle gwtFile = (GwtFileHandle)file;
    ImageElement img = gwtFile.preloader.images.get(file.path());
    if (img == null) throw new GdxRuntimeException("Couldn't load image '" + file.path() + "', file does not exist");
    create(img.getWidth(), img.getHeight(), Format.RGBA8888);
    context.setGlobalCompositeOperation(Composite.COPY);
    context.drawImage(img, 0, 0);
View Full Code Here

Examples of com.badlogic.gdx.backends.gwt.GwtFileHandle

  }

  @Override
  public FileHandle resolve (String fileName) {
    Resolution bestDesc = choose(descriptors);
    FileHandle originalHandle = new GwtFileHandle(fileName);
    FileHandle handle = baseResolver.resolve(resolve(originalHandle, bestDesc.suffix));
    if (!handle.exists()) handle = baseResolver.resolve(fileName);
    return handle;
  }
View Full Code Here

Examples of com.badlogic.gdx.backends.gwt.GwtFileHandle

  public FileHandle[] list (String url, FilenameFilter filter) {
    Array<FileHandle> files = new Array<FileHandle>();
    for (String path : texts.keys()) {
      if (isChild(path, url) && filter.accept(new File(url), path.substring(url.length() + 1))) {
        files.add(new GwtFileHandle(this, path, FileType.Internal));
      }
    }
    FileHandle[] list = new FileHandle[files.size];
    System.arraycopy(files.items, 0, list, 0, list.length);
    return list;
View Full Code Here

Examples of com.badlogic.gdx.backends.gwt.GwtFileHandle

  public FileHandle[] list (String url, String suffix) {
    Array<FileHandle> files = new Array<FileHandle>();
    for (String path : texts.keys()) {
      if (isChild(path, url) && path.endsWith(suffix)) {
        files.add(new GwtFileHandle(this, path, FileType.Internal));
      }
    }
    FileHandle[] list = new FileHandle[files.size];
    System.arraycopy(files.items, 0, list, 0, list.length);
    return list;
View Full Code Here

Examples of com.badlogic.gdx.backends.gwt.GwtFileHandle

  public FileHandle[] list (String url) {
    Array<FileHandle> files = new Array<FileHandle>();
    for (String path : texts.keys()) {
      if (isChild(path, url)) {
        files.add(new GwtFileHandle(this, path, FileType.Internal));
      }
    }
    FileHandle[] list = new FileHandle[files.size];
    System.arraycopy(files.items, 0, list, 0, list.length);
    return list;
View Full Code Here

Examples of com.badlogic.gdx.backends.gwt.GwtFileHandle

  public FileHandle[] list (String url, FileFilter filter) {
    Array<FileHandle> files = new Array<FileHandle>();
    for (String path : texts.keys()) {
      if (isChild(path, url) && filter.accept(new File(path))) {
        files.add(new GwtFileHandle(this, path, FileType.Internal));
      }
    }
    FileHandle[] list = new FileHandle[files.size];
    System.arraycopy(files.items, 0, list, 0, list.length);
    return list;
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.