| java.lang.Object | ||
| ↳ | casmi.graphics.element.Element | |
| ↳ | casmi.graphics.element.Polygon | |
Polygon class. Wrap JOGL and make it easy to use.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | LINES | ||||||||||
| int | LINES_3D | ||||||||||
| int | LINE_LOOP | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Polygon object.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the number of corners.
| |||||||||||
Gets the corner of Polygon.
| |||||||||||
Removes the corner of Polygon.
| |||||||||||
Sets the color of a corner.
| |||||||||||
Sets the color of a corner.
| |||||||||||
Sets the position of the Element in 3D.
| |||||||||||
Sets the position of the Element in 2D.
| |||||||||||
Sets the coordinates of the corner.
| |||||||||||
Sets the coordinates of the corner.
| |||||||||||
Adds the corner of Polygon.
| |||||||||||
Adds the corner of Polygon.
| |||||||||||
Adds the corner of Polygon.
| |||||||||||
|
[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 Polygon object.
Gets the number of corners.
Gets the corner of Polygon.
| index | The index number of the corner. |
|---|
Removes the corner of Polygon.
| index | The index number of the corner. |
|---|
Sets the color of a corner.
| index | The index number of a corner. |
|---|---|
| color | The color of a corner. |
Sets the color of a corner.
| index | The index number 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 |
Sets the coordinates of the corner.
| i | The index number of the point. |
|---|---|
| x | The x-coordinate of the point. |
| y | The y-coordinate of the point. |
| z | The z-coordinate of the point. |
Sets the coordinates of the corner.
| i | The index number of the point. |
|---|---|
| x | The x-coordinate of the point. |
| y | The y-coordinate of the point. |
Adds the corner of Polygon.
| x | The x-coordinate of a new added corner. |
|---|---|
| y | The y-coordinate of a new added corner. |
Adds the corner of Polygon.
| x | The x-coordinate of a new added corner. |
|---|---|
| y | The y-coordinate of a new added corner. |
| z | The z-coordinate of a new added corner. |
Adds the corner of Polygon.
| v | The coordinates of a new added corner. |
|---|