congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TextureData$Factory
Code IndexAdd Tabnine to your IDE (free)

How to use
TextureData$Factory
in
com.badlogic.gdx.graphics

Best Java code snippets using com.badlogic.gdx.graphics.TextureData$Factory (Showing top 20 results out of 315)

origin: crashinvaders/gdx-texture-packer-gui

.loadFromFile(textureFile, Pixmap.Format.RGBA8888, false);
origin: com.badlogicgames.gdx/gdx

@Override
public void loadAsync (AssetManager manager, String fileName, FileHandle file, TextureParameter parameter) {
  info.filename = fileName;
  if (parameter == null || parameter.textureData == null) {
    Pixmap pixmap = null;
    Format format = null;
    boolean genMipMaps = false;
    info.texture = null;
    if (parameter != null) {
      format = parameter.format;
      genMipMaps = parameter.genMipMaps;
      info.texture = parameter.texture;
    }
    info.data = TextureData.Factory.loadFromFile(file, format, genMipMaps);
  } else {
    info.data = parameter.textureData;
    info.texture = parameter.texture;
  }
  if (!info.data.isPrepared()) info.data.prepare();
}
origin: com.badlogicgames.gdx/gdx

public static TextureData loadFromFile (FileHandle file, boolean useMipMaps) {
  return loadFromFile(file, null, useMipMaps);
}
origin: com.badlogicgames.gdx/gdx

public Texture (FileHandle file, Format format, boolean useMipMaps) {
  this(TextureData.Factory.loadFromFile(file, format, useMipMaps));
}
origin: com.badlogicgames.gdx/gdx

/** Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps. */
public FacedCubemapData (FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY,
  FileHandle positiveZ, FileHandle negativeZ, boolean useMipMaps) {
  this(TextureData.Factory.loadFromFile(positiveX, useMipMaps), TextureData.Factory.loadFromFile(
    negativeX, useMipMaps), TextureData.Factory.loadFromFile(positiveY, useMipMaps), TextureData.Factory
    .loadFromFile(negativeY, useMipMaps), TextureData.Factory.loadFromFile(positiveZ, useMipMaps),
    TextureData.Factory.loadFromFile(negativeZ, useMipMaps));
}
origin: com.badlogicgames.gdx/gdx

/** Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps. */
public Cubemap (FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY, FileHandle positiveZ,
  FileHandle negativeZ, boolean useMipMaps) {
  this(TextureData.Factory.loadFromFile(positiveX, useMipMaps), TextureData.Factory.loadFromFile(negativeX, useMipMaps),
    TextureData.Factory.loadFromFile(positiveY, useMipMaps), TextureData.Factory.loadFromFile(negativeY, useMipMaps),
    TextureData.Factory.loadFromFile(positiveZ, useMipMaps), TextureData.Factory.loadFromFile(negativeZ, useMipMaps));
}
origin: com.badlogicgames.gdx/gdx

/** Loads the texture specified using the {@link FileHandle} and sets it to specified side, overwriting any previous data set to
 * that side. Note that you need to reload through {@link Cubemap#load(CubemapData)} any cubemap using this data for the change
 * to be taken in account.
 * @param side The {@link CubemapSide}
 * @param file The texture {@link FileHandle} */
public void load (CubemapSide side, FileHandle file) {
  data[side.index] = TextureData.Factory.loadFromFile(file, false);
}
origin: com.badlogicgames.gdx/gdx

public FileTextureArrayData (Pixmap.Format format, boolean useMipMaps, FileHandle[] files) {
  this.format = format;
  this.useMipMaps = useMipMaps;
  this.depth = files.length;
  textureDatas = new TextureData[files.length];
  for (int i = 0; i < files.length; i++) {
    textureDatas[i] = TextureData.Factory.loadFromFile(files[i], format, useMipMaps);
  }
}
origin: com.badlogicgames.gdx/gdx

/** Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps. */
public FacedCubemapData (FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY,
  FileHandle positiveZ, FileHandle negativeZ) {
  this(TextureData.Factory.loadFromFile(positiveX, false), TextureData.Factory.loadFromFile(negativeX,
    false), TextureData.Factory.loadFromFile(positiveY, false), TextureData.Factory.loadFromFile(
    negativeY, false), TextureData.Factory.loadFromFile(positiveZ, false), TextureData.Factory
    .loadFromFile(negativeZ, false));
}
origin: libgdx/libgdx

@Override
public void loadAsync (AssetManager manager, String fileName, FileHandle file, TextureParameter parameter) {
  info.filename = fileName;
  if (parameter == null || parameter.textureData == null) {
    Format format = null;
    boolean genMipMaps = false;
    info.texture = null;
    if (parameter != null) {
      format = parameter.format;
      genMipMaps = parameter.genMipMaps;
      info.texture = parameter.texture;
    }
    info.data = TextureData.Factory.loadFromFile(file, format, genMipMaps);
  } else {
    info.data = parameter.textureData;
    info.texture = parameter.texture;
  }
  if (!info.data.isPrepared()) info.data.prepare();
}
origin: libgdx/libgdx

@Override
public void loadAsync (AssetManager manager, String fileName, FileHandle file, TextureParameter parameter) {
  info.filename = fileName;
  if (parameter == null || parameter.textureData == null) {
    Format format = null;
    boolean genMipMaps = false;
    info.texture = null;
    if (parameter != null) {
      format = parameter.format;
      genMipMaps = parameter.genMipMaps;
      info.texture = parameter.texture;
    }
    info.data = TextureData.Factory.loadFromFile(file, format, genMipMaps);
  } else {
    info.data = parameter.textureData;
    info.texture = parameter.texture;
  }
  if (!info.data.isPrepared()) info.data.prepare();
}
origin: libgdx/libgdx

public Texture (FileHandle file, Format format, boolean useMipMaps) {
  this(TextureData.Factory.loadFromFile(file, format, useMipMaps));
}
origin: libgdx/libgdx

public static TextureData loadFromFile (FileHandle file, boolean useMipMaps) {
  return loadFromFile(file, null, useMipMaps);
}
origin: libgdx/libgdx

public Texture (FileHandle file, Format format, boolean useMipMaps) {
  this(TextureData.Factory.loadFromFile(file, format, useMipMaps));
}
origin: libgdx/libgdx

public static TextureData loadFromFile (FileHandle file, boolean useMipMaps) {
  return loadFromFile(file, null, useMipMaps);
}
origin: libgdx/libgdx

public static TextureData loadFromFile (FileHandle file, boolean useMipMaps) {
  return loadFromFile(file, null, useMipMaps);
}
origin: libgdx/libgdx

public static TextureData loadFromFile (FileHandle file, boolean useMipMaps) {
  return loadFromFile(file, null, useMipMaps);
}
origin: libgdx/libgdx

/** Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps. */
public Cubemap (FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY, FileHandle positiveZ,
  FileHandle negativeZ, boolean useMipMaps) {
  this(TextureData.Factory.loadFromFile(positiveX, useMipMaps), TextureData.Factory.loadFromFile(negativeX, useMipMaps),
    TextureData.Factory.loadFromFile(positiveY, useMipMaps), TextureData.Factory.loadFromFile(negativeY, useMipMaps),
    TextureData.Factory.loadFromFile(positiveZ, useMipMaps), TextureData.Factory.loadFromFile(negativeZ, useMipMaps));
}
origin: libgdx/libgdx

/** Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps. */
public FacedCubemapData (FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY,
  FileHandle positiveZ, FileHandle negativeZ, boolean useMipMaps) {
  this(TextureData.Factory.loadFromFile(positiveX, useMipMaps), TextureData.Factory.loadFromFile(
    negativeX, useMipMaps), TextureData.Factory.loadFromFile(positiveY, useMipMaps), TextureData.Factory
    .loadFromFile(negativeY, useMipMaps), TextureData.Factory.loadFromFile(positiveZ, useMipMaps),
    TextureData.Factory.loadFromFile(negativeZ, useMipMaps));
}
origin: libgdx/libgdx

/** Construct a Cubemap with the specified texture files for the sides, optionally generating mipmaps. */
public FacedCubemapData (FileHandle positiveX, FileHandle negativeX, FileHandle positiveY, FileHandle negativeY,
  FileHandle positiveZ, FileHandle negativeZ) {
  this(TextureData.Factory.loadFromFile(positiveX, false), TextureData.Factory.loadFromFile(negativeX,
    false), TextureData.Factory.loadFromFile(positiveY, false), TextureData.Factory.loadFromFile(
    negativeY, false), TextureData.Factory.loadFromFile(positiveZ, false), TextureData.Factory
    .loadFromFile(negativeZ, false));
}
com.badlogic.gdx.graphicsTextureData$Factory

Javadoc

Provides static method to instantiate the right implementation (Pixmap, ETC1, KTX).

Most used methods

  • loadFromFile

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Collectors (java.util.stream)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now