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).Modifier | Constructor and Description |
---|---|
protected |
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.
|
Modifier and Type | Method and Description |
---|---|
float |
getHeight() |
float |
getWidth() |
void |
read(JmeImporter importer) |
void |
updateGeometry(float width,
float height) |
void |
updateGeometry(float width,
float height,
boolean flipCoords) |
void |
write(JmeExporter e) |
addMorphTarget, clearBuffer, clearCollisionData, clone, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts
protected Quad()
public Quad(float width, float height)
width
- The X extent or widthheight
- The Y extent or widthpublic Quad(float width, float height, boolean flipCoords)
width
- The X extent or widthheight
- The Y extent or widthflipCoords
- If true, the texture coordinates will be flipped
along the Y axis.public float getHeight()
public float getWidth()
public void updateGeometry(float width, float height)
public void updateGeometry(float width, float height, boolean flipCoords)
public void read(JmeImporter importer) throws java.io.IOException
public void write(JmeExporter e) throws java.io.IOException