com.jme.image
Class TextureCubeMap

java.lang.Object
  extended by com.jme.image.Texture
      extended by com.jme.image.TextureCubeMap
All Implemented Interfaces:
Savable

public class TextureCubeMap
extends Texture

Author:
Joshua Slack

Nested Class Summary
static class TextureCubeMap.Face
          Face of the Cubemap as described by its directional offset from the origin.
 
Nested classes/interfaces inherited from class com.jme.image.Texture
Texture.ApplyMode, Texture.CombinerFunctionAlpha, Texture.CombinerFunctionRGB, Texture.CombinerOperandAlpha, Texture.CombinerOperandRGB, Texture.CombinerScale, Texture.CombinerSource, Texture.DepthTextureCompareFunc, Texture.DepthTextureCompareMode, Texture.DepthTextureMode, Texture.EnvironmentalMapMode, Texture.MagnificationFilter, Texture.MinificationFilter, Texture.RenderToTextureType, Texture.Type, Texture.WrapAxis, Texture.WrapMode
 
Field Summary
 
Fields inherited from class com.jme.image.Texture
DEFAULT_STORE_TEXTURE
 
Constructor Summary
TextureCubeMap()
           
 
Method Summary
 Texture createSimpleClone()
           
 Texture createSimpleClone(Texture rVal)
          Retreive a basic clone of this Texture (ie, clone everything but the image data, which is shared)
 boolean equals(java.lang.Object other)
           
 Texture.Type getType()
           
 Texture.WrapMode getWrap(Texture.WrapAxis axis)
          getWrap returns the wrap mode for a given coordinate axis on this texture.
 void read(JMEImporter e)
           
 void setWrap(Texture.WrapAxis axis, Texture.WrapMode mode)
          setWrap sets the wrap mode of this texture for a particular axis.
 void setWrap(Texture.WrapMode mode)
          setWrap sets the wrap mode of this texture for all axis.
 void write(JMEExporter e)
           
 
Methods inherited from class com.jme.image.Texture
getAnisotropicFilterPercent, getApply, getBlendColor, getBorderColor, getClassTag, getCombineFuncAlpha, getCombineFuncRGB, getCombineOp0Alpha, getCombineOp0RGB, getCombineOp1Alpha, getCombineOp1RGB, getCombineOp2Alpha, getCombineOp2RGB, getCombineScaleAlpha, getCombineScaleRGB, getCombineSrc0Alpha, getCombineSrc0RGB, getCombineSrc1Alpha, getCombineSrc1RGB, getCombineSrc2Alpha, getCombineSrc2RGB, getDepthCompareFunc, getDepthCompareMode, getDepthMode, getEnvironmentalMapMode, getImage, getImageLocation, getMagnificationFilter, getMatrix, getMemoryReq, getMinificationFilter, getRotation, getRTTSource, getScale, getTextureId, getTextureKey, getTranslation, hasBorder, isStoreTexture, setAnisotropicFilterPercent, setApply, setBlendColor, setBorderColor, setCombineFuncAlpha, setCombineFuncRGB, setCombineOp0Alpha, setCombineOp0RGB, setCombineOp1Alpha, setCombineOp1RGB, setCombineOp2Alpha, setCombineOp2RGB, setCombineScaleAlpha, setCombineScaleRGB, setCombineSrc0Alpha, setCombineSrc0RGB, setCombineSrc1Alpha, setCombineSrc1RGB, setCombineSrc2Alpha, setCombineSrc2RGB, setDepthCompareFunc, setDepthCompareMode, setDepthMode, setEnvironmentalMapMode, setHasBorder, setImage, setImageLocation, setMagnificationFilter, setMatrix, setMinificationFilter, setRenderToTextureType, setRotation, setScale, setStoreTexture, setTextureId, setTextureKey, setTranslation, updateMemoryReq
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextureCubeMap

public TextureCubeMap()
Method Detail

createSimpleClone

public Texture createSimpleClone()
Specified by:
createSimpleClone in class Texture

createSimpleClone

public Texture createSimpleClone(Texture rVal)
Description copied from class: Texture
Retreive a basic clone of this Texture (ie, clone everything but the image data, which is shared)

Overrides:
createSimpleClone in class Texture
Returns:
Texture

setWrap

public void setWrap(Texture.WrapAxis axis,
                    Texture.WrapMode mode)
setWrap sets the wrap mode of this texture for a particular axis.

Specified by:
setWrap in class Texture
Parameters:
axis - the texture axis to define a wrapmode on.
mode - the wrap mode for the given axis of the texture.
Throws:
java.lang.IllegalArgumentException - if axis or mode are null

setWrap

public void setWrap(Texture.WrapMode mode)
setWrap sets the wrap mode of this texture for all axis.

Specified by:
setWrap in class Texture
Parameters:
mode - the wrap mode for the given axis of the texture.
Throws:
java.lang.IllegalArgumentException - if mode is null

getWrap

public Texture.WrapMode getWrap(Texture.WrapAxis axis)
getWrap returns the wrap mode for a given coordinate axis on this texture.

Specified by:
getWrap in class Texture
Parameters:
axis - the axis to return for
Returns:
the wrap mode of the texture.
Throws:
java.lang.IllegalArgumentException - if axis is null

getType

public Texture.Type getType()
Specified by:
getType in class Texture

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class Texture

write

public void write(JMEExporter e)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class Texture
Throws:
java.io.IOException

read

public void read(JMEImporter e)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class Texture
Throws:
java.io.IOException