org.xith3d.scenegraph.primitives
Class Rectangle

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.Node
          extended by org.xith3d.scenegraph.Leaf
              extended by org.xith3d.scenegraph.Shape3D
                  extended by org.xith3d.scenegraph.primitives.Quad
                      extended by org.xith3d.scenegraph.primitives.Rectangle
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode
Direct Known Subclasses:
DrawRectangle, RectBillboard, TextRectangle

public class Rectangle
extends Quad

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, 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, org.openmali.vecmath2.Vector3f result)
           
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.types.twodee.Dim2f getSize()
           
 Texture getTexture()
           
 float getWidth()
           
 boolean resize(float width, float height)
          Resizes and repositions the Rectangle.
 boolean resize(float width, float height, float xOffset, float yOffset, float zOffset)
          Resizes and repositions the Rectangle.
 boolean resize(float width, float height, org.openmali.vecmath2.Tuple3f offset)
          Resizes and repositions the Rectangle.
 boolean resize(org.openmali.vecmath2.Tuple2f size)
          Resizes and repositions the Rectangle.
 boolean resize(org.openmali.vecmath2.Tuple2f size, float xOffset, float yOffset, float zOffset)
          Resizes and repositions the Rectangle.
 boolean 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, copy, freeOpenGLResources, getAppearance, getAppearance, getCustomComparable, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, newInstance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setCustomComparable, setGeometry, setIsShadowReceiver, 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.Node
cloneNode, detach, duplicateNode, freeOpenGLResources, getBounds, getBoundsAutoCompute, getBoundsType, getBoundsTypeHint, getDefaultPickable, getIndentString, getInheritedNodeAttributes, getModListener, getOrderedChild, getOrderedState, getParent, getRoot, getShadowAttachment, getShowBounds, getTransformGroup, getTreeCell, getWorldBounds, getWorldTransform, getWorldTransform, isBillboard, isIgnoreBounds, isOccluder, isPickable, isRenderable, isUpdatableNode, mergeInheritedClipper, mergeInheritedNodes, mergeInheritedScissorRect, popGlobalIgnoreBounds, printBounds, pushGlobalIgnoreBounds, setBoundsAutoCompute, setBoundsDirty, setBoundsDirtyUpward, setBoundsTypeHint, setDefaultPickable, setGlobalIgnoreBounds, setIgnoreBounds, setIsOccluder, setOrderedChild, setParent, setPickable, setPickableRecursive, setPickableRecursive, setRenderable, setShadowAttachment, setShowBounds, setTransformGroup, setTreeCell, traverse, unmergeInheritedFog, unmergeInheritedLight, unmergeInheritedNodes, updateOrderedChild, updateTransformGroup
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, 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

Rectangle

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)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the texture
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate
color - the color for the ColoringAttributes

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,
                 org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the texture
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate
color - the color for the ColoringAttributes

Rectangle

public Rectangle(float width,
                 float height,
                 Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 org.openmali.vecmath2.Tuple3f offset,
                 java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 float zOffset,
                 java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 float zOffset)
Creates an untextured Rectangle without alpha channel.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle

Rectangle

public Rectangle(float width,
                 float height,
                 org.openmali.vecmath2.Tuple3f offset)
Creates an untextured Rectangle without alpha channel.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset -

Rectangle

public Rectangle(float width,
                 float height)
Creates an untextured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle

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)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

Rectangle

@Deprecated
public Rectangle(Texture texture,
                            float width,
                            float height)
Deprecated. please use Rectangle(float, float, Texture)

Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 org.openmali.vecmath2.Tuple3f offset,
                 Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 float zOffset,
                 Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 float zOffset,
                 Texture texture,
                 org.openmali.vecmath2.Tuple2f texLowerLeft,
                 org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

Rectangle

public Rectangle(float width,
                 float height,
                 Texture texture,
                 org.openmali.vecmath2.Tuple2f texLowerLeft,
                 org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

Rectangle

public 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the texture
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

Rectangle

public Rectangle(float width,
                 float height,
                 org.openmali.vecmath2.Tuple3f offset,
                 org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
color - the color to use for colorin this Rectangle

Rectangle

public Rectangle(float width,
                 float height,
                 float zOffset,
                 org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle
color - the color to use for colorin this Rectangle

Rectangle

public Rectangle(float width,
                 float height,
                 org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
color - the color to use for colorin this Rectangle

Rectangle

protected Rectangle(float width,
                    float height,
                    boolean generateNormals,
                    Rectangle.ZeroPointLocation zpl,
                    Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 float zOffset,
                 Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 Texture texture,
                 org.openmali.vecmath2.Tuple2f texLowerLeft,
                 org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

Rectangle

public 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 float zOffset,
                 java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

public 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 float zOffset)
Creates an untextured Rectangle without alpha channel.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl)
Creates an untextured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 float zOffset,
                 org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle
color - the color to use for colorin this Rectangle

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
color - the color to use for colorin this Rectangle

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 org.openmali.vecmath2.Tuple3f offset,
                 org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
color - the color to use for coloring this Rectangle

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 org.openmali.vecmath2.Tuple3f offset,
                 java.lang.String texture)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

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)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

Rectangle

public Rectangle(float width,
                 float height,
                 Rectangle.ZeroPointLocation zpl,
                 org.openmali.vecmath2.Tuple3f offset,
                 Texture texture)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

Rectangle

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)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate
Method Detail

setTexturePosition

public void setTexturePosition(org.openmali.vecmath2.Tuple2f texLowerLeft,
                               org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new texture-coordinates for this Rectangle.

Parameters:
texLowerLeft - the Lower-left texture coordinate
texUpperRight - the Upper-right texture coordinate

setTexturePosition

public void setTexturePosition(org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new texture-coordinates for this Rectangle.

Parameters:
texUpperRight - the Upper-right texture coordinate

setTexture

public 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.

Parameters:
texture - the new Texture
texLowerLeft - the Lower-left texture coordinate
texUpperRight - the Upper-right texture coordinate

setTexture

public 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.

Parameters:
texture - the new Texture resource
texLowerLeft - the Lower-left texture coordinate
texUpperRight - the Upper-right texture coordinate

setTexture

public void setTexture(java.lang.String texture)
Sets the new Texture for this Rectangle.

Overrides:
setTexture in class Quad
Parameters:
texture - the new Texture resource

getTexture

public Texture getTexture()
Overrides:
getTexture in class Quad
Returns:
this Rectangle's Texture or null

createPosition

protected static org.openmali.vecmath2.Tuple3f createPosition(float width,
                                                              float height,
                                                              Rectangle.ZeroPointLocation zpl,
                                                              float zOffset,
                                                              org.openmali.vecmath2.Vector3f result)

createPosition

protected static org.openmali.vecmath2.Tuple3f createPosition(float width,
                                                              float height,
                                                              Rectangle.ZeroPointLocation zpl,
                                                              org.openmali.vecmath2.Tuple3f offset)

getSize

public org.openmali.types.twodee.Dim2f getSize()
Returns:
this Rectangle's size (never manipulate it)

getWidth

public final float getWidth()
Returns:
this Rectangle's width

getHeight

public final float getHeight()
Returns:
this Rectangle's height

resize

public boolean resize(float width,
                      float height,
                      float xOffset,
                      float yOffset,
                      float zOffset)
Resizes and repositions the Rectangle.

Parameters:
width - the new width
height - the new height
xOffset - relative x-Location of the Rectangle
yOffset - relative y-Location of the Rectangle
zOffset - relative z-Location of the Rectangle

resize

public final boolean resize(float width,
                            float height,
                            org.openmali.vecmath2.Tuple3f offset)
Resizes and repositions the Rectangle.

Parameters:
width - the new width
height - the new height
offset - the new relative position

resize

public final boolean resize(float width,
                            float height)
Resizes and repositions the Rectangle.

Parameters:
width - the new width
height - the new height

resize

public final boolean resize(org.openmali.vecmath2.Tuple2f size,
                            float xOffset,
                            float yOffset,
                            float zOffset)
Resizes and repositions the Rectangle.

Parameters:
size - the new size for the Rectangle
xOffset - relative x-Location of the Rectangle
yOffset - relative y-Location of the Rectangle
zOffset - relative z-Location of the Rectangle

resize

public final boolean resize(org.openmali.vecmath2.Tuple2f size,
                            org.openmali.vecmath2.Tuple3f offset)
Resizes and repositions the Rectangle.

Parameters:
size - the new size for the Rectangle
offset - the new relative position

resize

public final boolean resize(org.openmali.vecmath2.Tuple2f size)
Resizes and repositions the Rectangle.

Parameters:
size - the new size for the Rectangle

createVertexCoords

public static org.openmali.vecmath2.Point3f[] createVertexCoords(float width,
                                                                 float height,
                                                                 float offX,
                                                                 float offY,
                                                                 float offZ)

createVertexCoords

public static org.openmali.vecmath2.Point3f[] createVertexCoords(float width,
                                                                 float height,
                                                                 org.openmali.vecmath2.Tuple3f offset)

createTextureCoordinates

public static org.openmali.vecmath2.TexCoord2f[] createTextureCoordinates(org.openmali.vecmath2.Tuple2f texLowerLeft,
                                                                          org.openmali.vecmath2.Tuple2f texUpperRight)

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the texture
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate
color - the color for the ColoringAttributes

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the texture
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate
color - the color for the ColoringAttributes

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   org.openmali.vecmath2.Tuple3f offset,
                                                   java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   float zOffset,
                                                   java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   float zOffset)
Creates an untextured Rectangle without alpha channel.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   org.openmali.vecmath2.Tuple3f offset)
Creates an untextured Rectangle without alpha channel.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset -

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height)
Creates an untextured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   org.openmali.vecmath2.Tuple3f offset,
                                                   Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   float zOffset,
                                                   Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   float zOffset,
                                                   Texture texture,
                                                   org.openmali.vecmath2.Tuple2f texLowerLeft,
                                                   org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Texture texture,
                                                   org.openmali.vecmath2.Tuple2f texLowerLeft,
                                                   org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
texture - the texture
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   org.openmali.vecmath2.Tuple3f offset,
                                                   org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
offset - relative Location of the Rectangle
color - the color to use for colorin this Rectangle

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   float zOffset,
                                                   org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zOffset - relative z-Location of the Rectangle
color - the color to use for colorin this Rectangle

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
color - the color to use for colorin this Rectangle

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   float zOffset,
                                                   Texture texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   float zOffset,
                                                   java.lang.String texture)
Creates a textured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   float zOffset)
Creates an untextured Rectangle without alpha channel.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl)
Creates an untextured Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   float zOffset,
                                                   org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
zOffset - relative z-Location of the Rectangle
color - the color to use for colorin this Rectangle

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
color - the color to use for colorin this Rectangle

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
color - the color to use for coloring this Rectangle

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   org.openmali.vecmath2.Tuple3f offset,
                                                   java.lang.String texture)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate

createWithoutNormals

public static final Rectangle createWithoutNormals(float width,
                                                   float height,
                                                   Rectangle.ZeroPointLocation zpl,
                                                   org.openmali.vecmath2.Tuple3f offset,
                                                   Texture texture)
Creates an untextured, but colored Rectangle.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)

createWithoutNormals

public static final 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.

Parameters:
width - width of the Rectangle
height - height of the Rectangle
zpl - the location of the point (0, 0, 0)
offset - relative Location of the Rectangle
texture - the name of the texture (loaded with the TextureLoader)
texLowerLeft - Lower-left texture coordinate
texUpperRight - Upper-right texture coordinate