public static enum JOGLGeometry.Format extends java.lang.Enum<JOGLGeometry.Format>
The supported set of OpenGL interleaved vertex formats.
Enum Constant and Description |
---|
F_C3_V |
F_C4_N_V |
F_N_V |
F_T2_C3_V |
F_T2_C4_N_V |
F_T2_N_V |
F_T2_V |
F_V |
Modifier and Type | Field and Description |
---|---|
boolean |
hasNormals
whether normals are present in this format
|
boolean |
hasTexCoords
whether texture coordinates are present in this format
|
int |
interleavedFormat
the OpenGL interleaved vertex format
|
int |
j3dFormat
the corresponding Java3D vertex format
|
int |
numColorComponents
number of color components in this format
|
int |
wordsPerVertex
total number of 32-bit words per vertex in this format
|
Modifier and Type | Method and Description |
---|---|
static JOGLGeometry.Format |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JOGLGeometry.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JOGLGeometry.Format F_V
public static final JOGLGeometry.Format F_C3_V
public static final JOGLGeometry.Format F_N_V
public static final JOGLGeometry.Format F_C4_N_V
public static final JOGLGeometry.Format F_T2_V
public static final JOGLGeometry.Format F_T2_C3_V
public static final JOGLGeometry.Format F_T2_N_V
public static final JOGLGeometry.Format F_T2_C4_N_V
public final int interleavedFormat
public final int j3dFormat
public final int numColorComponents
public final boolean hasNormals
public final boolean hasTexCoords
public final int wordsPerVertex
public static JOGLGeometry.Format[] values()
for (JOGLGeometry.Format c : JOGLGeometry.Format.values()) System.out.println(c);
public static JOGLGeometry.Format 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 namejava.lang.NullPointerException
- if the argument is null