|
|
|
@ -123,24 +123,6 @@ public class TextureKey extends AssetKey<Texture> { |
|
|
|
|
this.anisotropy = anisotropy; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @deprecated Use {@link #setTextureTypeHint(com.jme3.texture.Texture.Type) } |
|
|
|
|
* instead. |
|
|
|
|
*/ |
|
|
|
|
@Deprecated |
|
|
|
|
public boolean isAsCube() { |
|
|
|
|
return textureTypeHint == Type.CubeMap; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @deprecated Use {@link #setTextureTypeHint(com.jme3.texture.Texture.Type) } |
|
|
|
|
* instead. |
|
|
|
|
*/ |
|
|
|
|
@Deprecated |
|
|
|
|
public void setAsCube(boolean asCube) { |
|
|
|
|
textureTypeHint = asCube ? Type.CubeMap : Type.TwoDimensional; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isGenerateMips() { |
|
|
|
|
return generateMips; |
|
|
|
|
} |
|
|
|
@ -149,24 +131,6 @@ public class TextureKey extends AssetKey<Texture> { |
|
|
|
|
this.generateMips = generateMips; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @deprecated Use {@link #setTextureTypeHint(com.jme3.texture.Texture.Type) } |
|
|
|
|
* instead. |
|
|
|
|
*/ |
|
|
|
|
@Deprecated |
|
|
|
|
public boolean isAsTexture3D() { |
|
|
|
|
return textureTypeHint == Type.ThreeDimensional; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @deprecated Use {@link #setTextureTypeHint(com.jme3.texture.Texture.Type) } |
|
|
|
|
* instead. |
|
|
|
|
*/ |
|
|
|
|
@Deprecated |
|
|
|
|
public void setAsTexture3D(boolean asTexture3D) { |
|
|
|
|
textureTypeHint = asTexture3D ? Type.ThreeDimensional : Type.TwoDimensional; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The type of texture expected to be returned. |
|
|
|
|
* |
|
|
|
|