Package com.badlogic.gdx.graphics.glutils

Examples of com.badlogic.gdx.graphics.glutils.FileTextureData


  public Texture (FileHandle file, Format format, boolean useMipMaps) {
    if (file.name().endsWith(".etc1")) {
      create(new ETC1TextureData(file, useMipMaps));
    } else {
      create(new FileTextureData(file, null, format, useMipMaps));
    }
  }
View Full Code Here


      if (!fileName.contains(".etc1")) {
        if (fileName.contains(".cim"))
          pixmap = PixmapIO.readCIM(file);
        else
          pixmap = new Pixmap(file);
        info.data = new FileTextureData(file, pixmap, format, genMipMaps);
      } else {
        info.data = new ETC1TextureData(file, genMipMaps);
      }
    } else {
      info.data = parameter.textureData;
View Full Code Here

        texture = parameter.texture;
      }

      FileHandle handle = resolve(fileName);
      pixmap = new Pixmap(handle);
      data = new FileTextureData(handle, pixmap, format, genMipMaps);
    } else {
      data = parameter.textureData;
      if (!data.isPrepared()) data.prepare();
      texture = parameter.texture;
    }
View Full Code Here

    regionsPanel.removeAll();
     Array<AtlasRegion> atlasRegions = atlas.getRegions();
     CustomCardLayout layout = (CustomCardLayout)regionsPanel.getLayout();
    Array<TextureRegion> regions = new Array<TextureRegion>();
    for(Texture texture : atlas.getTextures()){
      FileTextureData file = (FileTextureData)texture.getTextureData();
      regionsPanel.add(new TexturePanel( texture, getRegions(texture, atlasRegions, regions)));
    }
    layout.first(regionsPanel);
    this.atlas = atlas;
  }
View Full Code Here

  }
 
  public void setTexture(Texture texture){
    if(this.texture == texture) return;
    this.texture = texture;
    FileTextureData data = (FileTextureData)texture.getTextureData();
    setImage(data.getFileHandle().file().getAbsolutePath());
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.glutils.FileTextureData

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.