|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GeometryArrayType>
org.jagatoo.opengl.enums.GeometryArrayType
public enum GeometryArrayType
This enum abstracts all the available basic types of geometry array, that are supported by OpenGL. Each member provides the OpenGL constant for the appropriate type.
| Enum Constant Summary | |
|---|---|
LINE_STRIP
A strip of lines. |
|
LINES
A simple array of lines (two vertices per line). |
|
POINTS
A simple array of points (one vertex per point).. |
|
QUAD_STRIP
A strip of quads. |
|
QUADS
A simple array of quads (four vertices per quad). |
|
TRIANGLE_FAN
A fan of triangles. |
|
TRIANGLE_STRIP
A strip of triangles. |
|
TRIANGLES
A simple array of triangles (three vertices per triangle). |
|
| Method Summary | |
|---|---|
int |
getFaceSize()
|
boolean |
isStrip()
|
int |
toOpenGL()
|
static GeometryArrayType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GeometryArrayType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final GeometryArrayType POINTS
public static final GeometryArrayType LINES
public static final GeometryArrayType LINE_STRIP
public static final GeometryArrayType TRIANGLES
public static final GeometryArrayType TRIANGLE_STRIP
public static final GeometryArrayType TRIANGLE_FAN
public static final GeometryArrayType QUADS
public static final GeometryArrayType QUAD_STRIP
| Method Detail |
|---|
public static GeometryArrayType[] values()
for (GeometryArrayType c : GeometryArrayType.values()) System.out.println(c);
public static GeometryArrayType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic final int getFaceSize()
public final boolean isStrip()
public final int toOpenGL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||