org.xith3d.scenegraph
Class ASCIITexture

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.Texture2D
                  extended by org.xith3d.scenegraph.ASCIITexture
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.jagatoo.loaders.textures.AbstractTexture

public class ASCIITexture
extends Texture2D

This is a Texture with all printable ASCII characters on it.
For each character a set of texture coordinates is provided in a Map.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.scenegraph.Texture
Texture.MipmapMode
 
Field Summary
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
ASCIITexture(org.openmali.types.twodee.Sized2iRO[] charSizes, org.openmali.vecmath2.TexCoord2f[][] texCoords, CharIndex charIndex)
           
 
Method Summary
 CharIndex getCharIndex()
           
 org.openmali.types.twodee.Sized2iRO getCharSize(char ch)
           
 org.openmali.vecmath2.TexCoord2f[] getTextureCoordinates(char ch)
           
 
Methods inherited from class org.xith3d.scenegraph.Texture2D
checkImageType, cloneNodeComponent, createDrawTexture, createDrawTexture, duplicateNodeComponent, getImage0, getTextureCanvas, hasTextureCanvas, hasUpdateList, setHasUpdateList, setSizeChanged
 
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.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
 

Constructor Detail

ASCIITexture

public ASCIITexture(org.openmali.types.twodee.Sized2iRO[] charSizes,
                    org.openmali.vecmath2.TexCoord2f[][] texCoords,
                    CharIndex charIndex)
Method Detail

getCharIndex

public final CharIndex getCharIndex()

getTextureCoordinates

public org.openmali.vecmath2.TexCoord2f[] getTextureCoordinates(char ch)

getCharSize

public org.openmali.types.twodee.Sized2iRO getCharSize(char ch)