public class Quad extends Mesh
| Modifier and Type | Field and Description |
|---|---|
protected float |
height |
protected float |
width |
| Constructor and Description |
|---|
Quad()
Initializes a Quad with 1x1
|
Quad(Dimension size)
Initializes a Quad with the given dimensions
|
Quad(Dimension size,
boolean flip)
Initializes a Quad with the given dimensions,
if flip is set to true, the texture coordinates
will get flipped
|
Quad(float width,
float height)
Initializes a Quad with the given dimensions
|
Quad(float width,
float height,
boolean flip)
Initializes a Quad with the given dimensions
if flip is set to true, the texture coordinates
will get flipped
|
Quad(int width,
int height)
Initializes a Quad with the given dimensions
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
generate(boolean flip)
Generates the data
|
calcNormals, getBoundingBox, getVertexCount, setBoundingBox, setData, setMode, setVertices, setVertices, updateBoundspublic Quad()
public Quad(Dimension size)
size - Width and heightpublic Quad(Dimension size, boolean flip)
size - Width and heightflip - Whether to flip texture coordinatespublic Quad(float width,
float height)
width - Widthheight - Heightpublic Quad(int width,
int height)
width - Widthheight - Heightpublic Quad(float width,
float height,
boolean flip)
width - Widthheight - Heightflip - Whether to flip texture coordinatesCopyright © 2014. All rights reserved.