Class ContentTextureKey

java.lang.Object
com.jme3.asset.AssetKey<com.jme3.texture.Texture>
com.jme3.asset.TextureKey
com.jme3.scene.plugins.fbx.ContentTextureKey
All Implemented Interfaces:
com.jme3.export.Savable, Cloneable

public class ContentTextureKey extends com.jme3.asset.TextureKey
Used to load textures from image binary content.

Filename is required to acquire proper type asset loader according to extension.

  • Field Summary

    Fields inherited from class com.jme3.asset.AssetKey

    extension, folder, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContentTextureKey(String name, byte[] content)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends com.jme3.asset.cache.AssetCache>
     
    byte[]
     
    void
    read(com.jme3.export.JmeImporter im)
     
     
    void
    write(com.jme3.export.JmeExporter ex)
     

    Methods inherited from class com.jme3.asset.TextureKey

    equals, getAnisotropy, getProcessorType, getTextureTypeHint, hashCode, isFlipY, isGenerateMips, setAnisotropy, setFlipY, setGenerateMips, setTextureTypeHint

    Methods inherited from class com.jme3.asset.AssetKey

    clone, getExtension, getExtension, getFolder, getFolder, getName, reducePath

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ContentTextureKey

      public ContentTextureKey(String name, byte[] content)
  • Method Details

    • getContent

      public byte[] getContent()
    • getCacheType

      public Class<? extends com.jme3.asset.cache.AssetCache> getCacheType()
      Overrides:
      getCacheType in class com.jme3.asset.TextureKey
    • toString

      public String toString()
      Overrides:
      toString in class com.jme3.asset.TextureKey
    • write

      public void write(com.jme3.export.JmeExporter ex) throws IOException
      Specified by:
      write in interface com.jme3.export.Savable
      Overrides:
      write in class com.jme3.asset.TextureKey
      Throws:
      IOException
    • read

      public void read(com.jme3.export.JmeImporter im) throws IOException
      Specified by:
      read in interface com.jme3.export.Savable
      Overrides:
      read in class com.jme3.asset.TextureKey
      Throws:
      IOException