org.xith3d.utility.texturing
Class CubeTextureSet

java.lang.Object
  extended by org.xith3d.utility.texturing.CubeTextureSet

public class CubeTextureSet
extends java.lang.Object

This is a simple utility container for the six textures of a Cube.


Field Summary
static int BACK_INDEX
           
static int BOTTOM_INDEX
           
static int FRONT_INDEX
           
static int LEFT_INDEX
           
static int RIGHT_INDEX
           
static int TOP_INDEX
           
 
Constructor Summary
CubeTextureSet(java.lang.String[] textureNames)
           
CubeTextureSet(java.lang.String[] textureNames, TextureLoader.FlipMode flipMode)
           
CubeTextureSet(java.lang.String texFront, java.lang.String texRight, java.lang.String texBack, java.lang.String texLeft, java.lang.String texTop, java.lang.String texBottom)
           
CubeTextureSet(java.lang.String texFront, java.lang.String texRight, java.lang.String texBack, java.lang.String texLeft, java.lang.String texTop, java.lang.String texBottom, TextureLoader.FlipMode flipMode)
           
CubeTextureSet(Texture texFront, Texture texRight, Texture texBack, Texture texLeft, Texture texTop, Texture texBottom)
           
CubeTextureSet(Texture texFront, Texture texRight, Texture texBack, Texture texLeft, Texture texTop, Texture texBottom, TextureLoader.FlipMode flipMode)
           
 
Method Summary
static CubeTextureSet create(java.lang.String baseName, java.lang.String extension)
           
static CubeTextureSet create(java.lang.String baseName, java.lang.String extension, TextureLoader.FlipMode flipMode)
           
 java.lang.String getBack()
           
 Texture getBackTexture()
           
 java.lang.String getBottom()
           
 Texture getBottomTexture()
           
 TextureLoader.FlipMode getFlipMode()
           
 java.lang.String getFront()
           
 Texture getFrontTexture()
           
 java.lang.String getLeft()
           
 Texture getLeftTexture()
           
 java.lang.String getRight()
           
 Texture getRightTexture()
           
 java.lang.String[] getTextureNames()
           
 Texture[] getTextures()
           
 java.lang.String getTop()
           
 Texture getTopTexture()
           
 void setBack(java.lang.String textureName)
           
 void setBack(Texture texture)
           
 void setBottom(java.lang.String textureName)
           
 void setBottom(Texture texture)
           
 void setFlipMode(TextureLoader.FlipMode flipMode)
           
 void setFront(java.lang.String textureName)
           
 void setFront(Texture texture)
           
 void setLeft(java.lang.String textureName)
           
 void setLeft(Texture texture)
           
 void setRight(java.lang.String textureName)
           
 void setRight(Texture texture)
           
 void setTop(java.lang.String textureName)
           
 void setTop(Texture texture)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FRONT_INDEX

public static final int FRONT_INDEX
See Also:
Constant Field Values

RIGHT_INDEX

public static final int RIGHT_INDEX
See Also:
Constant Field Values

BACK_INDEX

public static final int BACK_INDEX
See Also:
Constant Field Values

LEFT_INDEX

public static final int LEFT_INDEX
See Also:
Constant Field Values

TOP_INDEX

public static final int TOP_INDEX
See Also:
Constant Field Values

BOTTOM_INDEX

public static final int BOTTOM_INDEX
See Also:
Constant Field Values
Constructor Detail

CubeTextureSet

public CubeTextureSet(java.lang.String[] textureNames,
                      TextureLoader.FlipMode flipMode)

CubeTextureSet

public CubeTextureSet(java.lang.String[] textureNames)

CubeTextureSet

public CubeTextureSet(java.lang.String texFront,
                      java.lang.String texRight,
                      java.lang.String texBack,
                      java.lang.String texLeft,
                      java.lang.String texTop,
                      java.lang.String texBottom,
                      TextureLoader.FlipMode flipMode)

CubeTextureSet

public CubeTextureSet(java.lang.String texFront,
                      java.lang.String texRight,
                      java.lang.String texBack,
                      java.lang.String texLeft,
                      java.lang.String texTop,
                      java.lang.String texBottom)

CubeTextureSet

public CubeTextureSet(Texture texFront,
                      Texture texRight,
                      Texture texBack,
                      Texture texLeft,
                      Texture texTop,
                      Texture texBottom,
                      TextureLoader.FlipMode flipMode)

CubeTextureSet

public CubeTextureSet(Texture texFront,
                      Texture texRight,
                      Texture texBack,
                      Texture texLeft,
                      Texture texTop,
                      Texture texBottom)
Method Detail

setFlipMode

public void setFlipMode(TextureLoader.FlipMode flipMode)

getFlipMode

public TextureLoader.FlipMode getFlipMode()

getTextureNames

public java.lang.String[] getTextureNames()

getTextures

public Texture[] getTextures()

setFront

public void setFront(Texture texture)

setFront

public void setFront(java.lang.String textureName)

getFront

public java.lang.String getFront()

getFrontTexture

public Texture getFrontTexture()

setRight

public void setRight(Texture texture)

setRight

public void setRight(java.lang.String textureName)

getRight

public java.lang.String getRight()

getRightTexture

public Texture getRightTexture()

setBack

public void setBack(Texture texture)

setBack

public void setBack(java.lang.String textureName)

getBack

public java.lang.String getBack()

getBackTexture

public Texture getBackTexture()

setLeft

public void setLeft(Texture texture)

setLeft

public void setLeft(java.lang.String textureName)

getLeft

public java.lang.String getLeft()

getLeftTexture

public Texture getLeftTexture()

setTop

public void setTop(Texture texture)

setTop

public void setTop(java.lang.String textureName)

getTop

public java.lang.String getTop()

getTopTexture

public Texture getTopTexture()

setBottom

public void setBottom(Texture texture)

setBottom

public void setBottom(java.lang.String textureName)

getBottom

public java.lang.String getBottom()

getBottomTexture

public Texture getBottomTexture()

create

public static CubeTextureSet create(java.lang.String baseName,
                                    java.lang.String extension,
                                    TextureLoader.FlipMode flipMode)

create

public static CubeTextureSet create(java.lang.String baseName,
                                    java.lang.String extension)