congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Permission (java.security)
    Legacy security code; do not use.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JPanel (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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