|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
org.xith3d.scenegraph.primitives.Quad
org.xith3d.scenegraph.primitives.Rectangle
public class Rectangle
This is a simple, single textured rectangle implementation. Useful for loading screens and Foreground objects.
| Nested Class Summary | |
|---|---|
static class |
Rectangle.ZeroPointLocation
|
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
|
Rectangle(float width,
float height)
Creates an untextured Rectangle. |
protected |
Rectangle(float width,
float height,
boolean generateNormals,
Rectangle.ZeroPointLocation zpl,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
float zOffset)
Creates an untextured Rectangle without alpha channel. |
|
Rectangle(float width,
float height,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
float zOffset,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
float zOffset,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl)
Creates an untextured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
Creates an untextured Rectangle without alpha channel. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
Creates an untextured Rectangle without alpha channel. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle. |
|
Rectangle(Texture texture,
float width,
float height)
Deprecated. please use Rectangle(float, float, Texture) |
| Method Summary | |
|---|---|
protected static org.openmali.vecmath2.Tuple3f |
createPosition(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
|
protected static org.openmali.vecmath2.Tuple3f |
createPosition(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset)
|
static org.openmali.vecmath2.TexCoord2f[] |
createTextureCoordinates(org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
|
static org.openmali.vecmath2.Point3f[] |
createVertexCoords(float width,
float height,
float offX,
float offY,
float offZ)
|
static org.openmali.vecmath2.Point3f[] |
createVertexCoords(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
|
static Rectangle |
createWithoutNormals(float width,
float height)
Creates an untextured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset)
Creates an untextured Rectangle without alpha channel. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl)
Creates an untextured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
Creates an untextured Rectangle without alpha channel. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
Creates an untextured Rectangle without alpha channel. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle. |
float |
getHeight()
|
org.openmali.vecmath2.Tuple2f |
getSize()
|
Texture |
getTexture()
|
float |
getWidth()
|
void |
resize(float width,
float height)
Resizes and repositions the Rectangle. |
void |
resize(float width,
float height,
float xOffset,
float yOffset,
float zOffset)
Resizes and repositions the Rectangle. |
void |
resize(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
Resizes and repositions the Rectangle. |
void |
resize(org.openmali.vecmath2.Tuple2f size)
Resizes and repositions the Rectangle. |
void |
resize(org.openmali.vecmath2.Tuple2f size,
float xOffset,
float yOffset,
float zOffset)
Resizes and repositions the Rectangle. |
void |
resize(org.openmali.vecmath2.Tuple2f size,
org.openmali.vecmath2.Tuple3f offset)
Resizes and repositions the Rectangle. |
void |
setTexture(java.lang.String texture)
Sets the new Texture for this Rectangle. |
void |
setTexture(java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new Texture together with texture-coordinates for this Rectangle. |
void |
setTexture(Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new Texture together with texture-coordinates for this Rectangle. |
void |
setTexturePosition(org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new texture-coordinates for this Rectangle. |
void |
setTexturePosition(org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new texture-coordinates for this Rectangle. |
| Methods inherited from class org.xith3d.scenegraph.primitives.Quad |
|---|
createGeometry, generateNormals, getAlpha, getColor, getGeometry, setAlpha, setColor, setTexture, setTexture, setTexture, setTextureCoordinates, setTexturePosition, setVertexCoords, setVertexCoords, setVertexCoords, update, update |
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange |
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinatecolor - the color for the ColoringAttributes
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinatecolor - the color for the ColoringAttributes
public Rectangle(float width,
float height,
Texture texture)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
float zOffset,
java.lang.String texture)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
float zOffset)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangle
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
width - width of the Rectangleheight - height of the Rectangleoffset -
public Rectangle(float width,
float height)
width - width of the Rectangleheight - height of the Rectangle
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
@Deprecated
public Rectangle(Texture texture,
float width,
float height)
Rectangle(float, float, Texture)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
float zOffset,
Texture texture)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectanglecolor - the color to use for colorin this Rectangle
public Rectangle(float width,
float height,
float zOffset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectanglecolor - the color to use for colorin this Rectangle
public Rectangle(float width,
float height,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglecolor - the color to use for colorin this Rectangle
protected Rectangle(float width,
float height,
boolean generateNormals,
Rectangle.ZeroPointLocation zpl,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangle
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectanglecolor - the color to use for colorin this Rectangle
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)color - the color to use for colorin this Rectangle
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectanglecolor - the color to use for coloring this Rectangle
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate| Method Detail |
|---|
public void setTexturePosition(org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
texLowerLeft - the Lower-left texture coordinatetexUpperRight - the Upper-right texture coordinatepublic void setTexturePosition(org.openmali.vecmath2.Tuple2f texUpperRight)
texUpperRight - the Upper-right texture coordinate
public void setTexture(Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
texture - the new TexturetexLowerLeft - the Lower-left texture coordinatetexUpperRight - the Upper-right texture coordinatepublic void setTexture(java.lang.String texture,