public class TbtQuad
extends com.jme3.scene.Mesh
implements java.lang.Cloneable
The texture is split up into a three-by-three grid in this fashion:
+---+--------------+-------+ | | <-----> | | y2 +---+--------------+-------+ | | | | | ^ | ^ | ^ | | | | | | | | | | | <-----> | | | | | | | | | | | v | v | v | | | | | y1 +---+--------------+-------+ | | <-----> | | +---+--------------+-------+ x1 x2Arrows indicate the direction in which each grid cell will stretch to fill the area given by the component.
Common pitfalls
Constructor and Description |
---|
TbtQuad(float width,
float height) |
TbtQuad(float width,
float height,
int x1,
int y1,
int x2,
int y2,
int imageWidth,
int imageHeight,
float imageScale) |
Modifier and Type | Method and Description |
---|---|
TbtQuad |
clone() |
com.jme3.math.Vector2f |
getSize() |
protected void |
refreshGeometry() |
void |
updateSize(float width,
float height) |
clearBuffer, clearCollisionData, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, isAnimated, jmeClone, prepareForAnim, read, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setPointSize, setStatic, setStreamed, updateBound, updateCounts, write
public TbtQuad(float width, float height)
public TbtQuad(float width, float height, int x1, int y1, int x2, int y2, int imageWidth, int imageHeight, float imageScale)
public TbtQuad clone()
clone
in class com.jme3.scene.Mesh
public com.jme3.math.Vector2f getSize()
public void updateSize(float width, float height)
protected void refreshGeometry()