com.jme3.scene.shape
Class Quad
java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.shape.Quad
- All Implemented Interfaces:
- Savable, java.lang.Cloneable
public class Quad
- extends Mesh
Quad
represents a rectangular plane in space
defined by 4 vertices. The quad's lower-left side is contained
at the local space origin (0, 0, 0), while the upper-right
side is located at the width/height coordinates (width, height, 0).
Nested classes/interfaces inherited from class com.jme3.scene.Mesh |
Mesh.Mode |
Constructor Summary |
Quad()
Serialization only. |
Quad(float width,
float height)
Create a quad with the given width and height. |
Quad(float width,
float height,
boolean flipCoords)
Create a quad with the given width and height. |
Methods inherited from class com.jme3.scene.Mesh |
clearBuffer, clone, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, prepareForAnim, read, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts, write |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Quad
public Quad()
- Serialization only. Do not use.
Quad
public Quad(float width,
float height)
- Create a quad with the given width and height. The quad
is always created in the XY plane.
- Parameters:
width
- The X extent or widthheight
- The Y extent or width
Quad
public Quad(float width,
float height,
boolean flipCoords)
- Create a quad with the given width and height. The quad
is always created in the XY plane.
- Parameters:
width
- The X extent or widthheight
- The Y extent or widthflipCoords
- If true, the texture coordinates will be flipped
along the Y axis.
getHeight
public float getHeight()
getWidth
public float getWidth()
updateGeometry
public void updateGeometry(float width,
float height)
updateGeometry
public void updateGeometry(float width,
float height,
boolean flipCoords)