org.xith3d.scenegraph
Class Texture2D
java.lang.Object
org.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.NodeComponent
org.xith3d.scenegraph.Texture
org.xith3d.scenegraph.Texture2D
- All Implemented Interfaces:
- org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.jagatoo.loaders.textures.AbstractTexture
- Direct Known Subclasses:
- ASCIITexture
public class Texture2D
- extends Texture
Texture2D defines attributes that apply to .
|
Constructor Summary |
Texture2D(org.jagatoo.opengl.enums.TextureFormat format)
Constructs a new Texture2D object. |
Texture2D(org.jagatoo.opengl.enums.TextureFormat format,
int boundaryWidth)
Constructs a new Texture2D object. |
| 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, toString |
| 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 |
Texture2D
public Texture2D(org.jagatoo.opengl.enums.TextureFormat format)
- Constructs a new Texture2D object.
- Parameters:
format -
Texture2D
public Texture2D(org.jagatoo.opengl.enums.TextureFormat format,
int boundaryWidth)
- Constructs a new Texture2D object.
- Parameters:
format - boundaryWidth -
setHasUpdateList
public void setHasUpdateList(boolean b)
- This method must be called after the
TextureImage2D#update(java.awt.Rectangle)
method to make the renderer apply the update list to the graphics card.
- Parameters:
b -
hasUpdateList
public final boolean hasUpdateList()
getImage0
public final TextureImage2D getImage0()
- Returns:
- the first
hasTextureCanvas
public final boolean hasTextureCanvas()
getTextureCanvas
public Texture2DCanvas getTextureCanvas()
setSizeChanged
public void setSizeChanged()
- Overrides:
setSizeChanged in class Texture
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
duplicateNodeComponent
protected void duplicateNodeComponent(NodeComponent original,
boolean forceDuplicate)
-
- Overrides:
duplicateNodeComponent in class Texture
cloneNodeComponent
public Texture2D cloneNodeComponent(boolean forceDuplicate)
-
- Specified by:
cloneNodeComponent in class NodeComponent
createDrawTexture
public static Texture2D createDrawTexture(org.jagatoo.opengl.enums.TextureFormat format,
int width,
int height,
boolean yUp)
createDrawTexture
public static Texture2D createDrawTexture(org.jagatoo.opengl.enums.TextureFormat format,
int width,
int height)