org.xith3d.scenegraph
Class TextureCubeMap

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.NodeComponent
          extended by org.xith3d.scenegraph.Texture
              extended by org.xith3d.scenegraph.TextureCubeMap
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.jagatoo.loaders.textures.AbstractTexture

public class TextureCubeMap
extends Texture


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.scenegraph.Texture
Texture.MipmapMode
 
Field Summary
static int NEGATIVE_X
           
static int NEGATIVE_Y
           
static int NEGATIVE_Z
           
static int POSITIVE_X
           
static int POSITIVE_Y
           
static int POSITIVE_Z
           
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
TextureCubeMap(org.jagatoo.opengl.enums.TextureFormat format, int face, CubeTextureSet textureSet)
           
TextureCubeMap(org.jagatoo.opengl.enums.TextureFormat format, int face, java.lang.String[] textureNames)
           
 
Method Summary
protected  void checkImageType(TextureImage image)
          This method is called by Texture.setImage(int, TextureImage).
 TextureCubeMap cloneNodeComponent(boolean forceDuplicate)
          
protected  void duplicateNodeComponent(NodeComponent original, boolean forceDuplicate)
          
 TextureImage getImage(int mipmap, int face)
           
 void setImage(int level, int face, java.lang.String textureName)
           
 void setImage(int level, int face, TextureImage image)
           
 void setImages(int face, java.lang.String[] images)
           
 void setImages(int face, TextureImage[] images)
           
 
Methods inherited from class org.xith3d.scenegraph.Texture
addImage, enableAutoFreeLocalData, finalize, freeOpenGLResources, getBoundaryColor, getBoundaryColor, getBoundaryModeS, getBoundaryModeT, getBoundaryWidth, getCacheKey, getDefaultFilter, getFilter, getFormat, getHeight, getImage, getImagesCount, getMipMapMode, getOpenGLReferences, getOriginalHeight, getOriginalSize, getOriginalWidth, getResourceName, getSize, getStateId, getType, getWidth, hasSizeChanged, isDirty, isEnabled, isMarkedAsLocalDataToBeFreed, removeFromCache, setBoundaryColor, setBoundaryColor, setBoundaryModeS, setBoundaryModes, setBoundaryModeT, setBoundaryWidth, setCacheKey, setDefaultFilter, setEnabled, setFilter, setImage, setImage, setResourceName, setSizeChanged, toString
 
Methods inherited from class org.xith3d.scenegraph.NodeComponent
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jagatoo.loaders.textures.AbstractTexture
getName, setName
 

Field Detail

POSITIVE_X

public static final int POSITIVE_X
See Also:
Constant Field Values

NEGATIVE_X

public static final int NEGATIVE_X
See Also:
Constant Field Values

POSITIVE_Y

public static final int POSITIVE_Y
See Also:
Constant Field Values

NEGATIVE_Y

public static final int NEGATIVE_Y
See Also:
Constant Field Values

POSITIVE_Z

public static final int POSITIVE_Z
See Also:
Constant Field Values

NEGATIVE_Z

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

TextureCubeMap

public TextureCubeMap(org.jagatoo.opengl.enums.TextureFormat format,
                      int face,
                      java.lang.String[] textureNames)

TextureCubeMap

public TextureCubeMap(org.jagatoo.opengl.enums.TextureFormat format,
                      int face,
                      CubeTextureSet textureSet)
Method Detail

checkImageType

protected void checkImageType(TextureImage image)
This method is called by Texture.setImage(int, TextureImage). It checks the added image's type and throws an exception, if the type is not accepted.

Specified by:
checkImageType in class Texture

setImage

public void setImage(int level,
                     int face,
                     TextureImage image)

setImage

public void setImage(int level,
                     int face,
                     java.lang.String textureName)

setImages

public void setImages(int face,
                      TextureImage[] images)

setImages

public void setImages(int face,
                      java.lang.String[] images)

getImage

public TextureImage getImage(int mipmap,
                             int face)

duplicateNodeComponent

protected void duplicateNodeComponent(NodeComponent original,
                                      boolean forceDuplicate)

Overrides:
duplicateNodeComponent in class Texture

cloneNodeComponent

public TextureCubeMap cloneNodeComponent(boolean forceDuplicate)

Specified by:
cloneNodeComponent in class NodeComponent