| java.lang.Object | ||
| ↳ | casmi.graphics.element.Element | |
| ↳ | casmi.graphics.element.Quad | |
Quad class. Wrap JOGL and make it easy to use.
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Quad object using x,y-coordinate of corners.
| |||||||||||
Creates a new Quad object using x,y-coordinate of corners.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets coordinates of a corner.
| |||||||||||
Sets x,y-coordinate of corners.
| |||||||||||
Sets x,y-coordinate of corners.
| |||||||||||
Sets coordinates of a corner.
| |||||||||||
Sets x,y-coordinate of a corner.
| |||||||||||
Sets x,y,z-coordinate of a corner.
| |||||||||||
Sets the color of a corner for gradation.
| |||||||||||
Sets the color of a corner for gradation.
| |||||||||||
Sets the position of the Element in 3D.
| |||||||||||
Sets the position of the Element in 2D.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
casmi.graphics.object.Renderable
| |||||||||||
From interface
casmi.graphics.object.Resettable
| |||||||||||
Creates a new Quad object using x,y-coordinate of corners.
| x1 | The x-coordinate of the first corner. |
|---|---|
| y1 | The y-coordinate of the first corner. |
| x2 | The x-coordinate of the second corner. |
| y2 | The y-coordinate of the second corner. |
| x3 | The x-coordinate of the third corner. |
| y3 | The y-coordinate of the third corner. |
| x4 | The x-coordinate of the fourth corner. |
| y4 | The y-coordinate of the fourth corner. |
Creates a new Quad object using x,y-coordinate of corners.
| v1 | The coordinates of the first corner. |
|---|---|
| v2 | The coordinates of the second corner. |
| v3 | The coordinates of the third corner. |
| v4 | The coordinates of the fourth corner. |
Gets coordinates of a corner.
| index | The index of a corner. |
|---|
Sets x,y-coordinate of corners.
| x1 | The x-coordinate of the first corner. |
|---|---|
| y1 | The y-coordinate of the first corner. |
| x2 | The x-coordinate of the second corner. |
| y2 | The y-coordinate of the second corner. |
| x3 | The x-coordinate of the third corner. |
| y3 | The y-coordinate of the third corner. |
| x4 | The x-coordinate of the fourth corner. |
| y4 | The y-coordinate of the fourth corner. |
Sets x,y-coordinate of corners.
| v1 | The coordinates of the first corner. |
|---|---|
| v2 | The coordinates of the second corner. |
| v3 | The coordinates of the third corner. |
| v4 | The coordinates of the fourth corner. |
Sets coordinates of a corner.
| index | The index of a corner. |
|---|---|
| v | The coordinates of a corner. |
Sets x,y-coordinate of a corner.
| index | The index of a corner. |
|---|---|
| x | The x-coordinate of a corner. |
| y | The y-coordinate of a corner. |
Sets x,y,z-coordinate of a corner.
| index | The index of a corner. |
|---|---|
| x | The x-coordinate of a corner. |
| y | The y-coordinate of a corner. |
| z | The z-coordinate of a corner. |
Sets the color of a corner for gradation.
| index | The index of a corner. |
|---|---|
| color | The color of a corner. |
Sets the color of a corner for gradation.
| index | The index of a corner. |
|---|---|
| colorSet | The colorSet of a corner. |
Sets the position of the Element in 3D.
| x | x-coordinate |
|---|---|
| y | y-coordinate |
| z | z-coordinate |
Sets the position of the Element in 2D.
| x | x-coordinate |
|---|---|
| y | y-coordinate |