Package com.badlogic.gdx.assets.loaders.TextureLoader

Examples of com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter


  public Array<AssetDescriptor> getDependencies (String fileName, FileHandle tmxFile, Parameters parameter) {
    Array<AssetDescriptor> dependencies = new Array<AssetDescriptor>();
    try {
      root = xml.parse(tmxFile);
      boolean generateMipMaps = (parameter != null ? parameter.generateMipMaps : false);
      TextureLoader.TextureParameter texParams = new TextureParameter();
      texParams.genMipMaps = generateMipMaps;
      if (parameter != null) {
        texParams.minFilter = parameter.textureMinFilter;
        texParams.magFilter = parameter.textureMagFilter;
      }
View Full Code Here


          assetManager.setReferenceCount(fileName, 0);
          texture.glHandle = 0;

          // create the parameters, passing the reference to the texture as
          // well as a callback that sets the ref count.
          TextureParameter params = new TextureParameter();
          params.textureData = texture.getTextureData();
          params.minFilter = texture.getMinFilter();
          params.magFilter = texture.getMagFilter();
          params.wrapU = texture.getUWrap();
          params.wrapV = texture.getVWrap();
View Full Code Here

  public Array<AssetDescriptor> getDependencies (String fileName, FileHandle tmxFile, Parameters parameter) {
    Array<AssetDescriptor> dependencies = new Array<AssetDescriptor>();
    try {
      root = xml.parse(tmxFile);
      boolean generateMipMaps = (parameter != null ? parameter.generateMipMaps : false);
      TextureLoader.TextureParameter texParams = new TextureParameter();
      texParams.genMipMaps = generateMipMaps;
      if (parameter != null) {
        texParams.minFilter = parameter.textureMinFilter;
        texParams.magFilter = parameter.textureMagFilter;
      }
View Full Code Here

  public Array<AssetDescriptor> getDependencies (String fileName, FileHandle tmxFile, Parameters parameter) {
    Array<AssetDescriptor> dependencies = new Array<AssetDescriptor>();
    try {
      root = xml.parse(tmxFile);
      boolean generateMipMaps = (parameter != null ? parameter.generateMipMaps : false);
      TextureLoader.TextureParameter texParams = new TextureParameter();
      texParams.genMipMaps = generateMipMaps;
      if (parameter != null) {
        texParams.minFilter = parameter.textureMinFilter;
        texParams.magFilter = parameter.textureMagFilter;
      }
View Full Code Here

    textureButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed (ActionEvent e) {
        File file = editor.showFileLoadDialog();
        if(file != null){
          TextureParameter params = new TextureParameter();
          params.genMipMaps = genMipMaps.isSelected();
          params.minFilter = (TextureFilter)minFilterBox.getSelectedItem();
          params.magFilter = (TextureFilter)magFilterBox.getSelectedItem();
          Texture texture = editor.load(file.getAbsolutePath(), Texture.class, null, params);
          if(texture != null){
View Full Code Here

  public Array<AssetDescriptor> getDependencies (String fileName, FileHandle tmxFile, Parameters parameter) {
    Array<AssetDescriptor> dependencies = new Array<AssetDescriptor>();
    try {
      root = xml.parse(tmxFile);
      boolean generateMipMaps = (parameter != null ? parameter.generateMipMaps : false);
      TextureLoader.TextureParameter texParams = new TextureParameter();
      texParams.genMipMaps = generateMipMaps;
      if (parameter != null) {
        texParams.minFilter = parameter.textureMinFilter;
        texParams.magFilter = parameter.textureMagFilter;
      }
View Full Code Here

  public Array<AssetDescriptor> getDependencies (String fileName, FileHandle tmxFile, Parameters parameter) {
    Array<AssetDescriptor> dependencies = new Array<AssetDescriptor>();
    try {
      root = xml.parse(tmxFile);
      boolean generateMipMaps = (parameter != null ? parameter.generateMipMaps : false);
      TextureLoader.TextureParameter texParams = new TextureParameter();
      texParams.genMipMaps = generateMipMaps;
      if (parameter != null) {
        texParams.minFilter = parameter.textureMinFilter;
        texParams.magFilter = parameter.textureMagFilter;
      }
View Full Code Here

  }

  @Override
  public Array<AssetDescriptor> getDependencies (String fileName, SkinParameter parameter) {
    Array<AssetDescriptor> deps = new Array();
    TextureParameter textureParam = new TextureParameter();
    textureParam.minFilter = TextureFilter.Linear;
    textureParam.magFilter = TextureFilter.Linear;
    if (parameter == null)
      deps.add(new AssetDescriptor(Gdx.files.internal(fileName).nameWithoutExtension() + ".png", Texture.class, textureParam));
    else
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter

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.