public enum GLVertexAttribute extends Enum<GLVertexAttribute>
Enum Constant and Description |
---|
ATTRIB_COLOR_3D |
ATTRIB_COLOR_4D |
ATTRIB_NORMAL |
ATTRIB_POSITION_1D |
ATTRIB_POSITION_2D |
ATTRIB_POSITION_3D |
ATTRIB_POSITION_4D |
ATTRIB_TEXCOORD_1D |
ATTRIB_TEXCOORD_2D |
ATTRIB_TEXCOORD_3D |
ATTRIB_TEXCOORD_4D |
Modifier and Type | Field and Description |
---|---|
int |
length |
Modifier and Type | Method and Description |
---|---|
void |
bind(javax.media.opengl.GL2 gl,
int stride,
int offset) |
static void |
bind(javax.media.opengl.GL2 gl,
int index,
int length,
int stride,
int offset) |
void |
unbind(javax.media.opengl.GL2 gl) |
static void |
unbind(javax.media.opengl.GL2 gl,
int index) |
static GLVertexAttribute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GLVertexAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GLVertexAttribute ATTRIB_POSITION_1D
public static final GLVertexAttribute ATTRIB_POSITION_2D
public static final GLVertexAttribute ATTRIB_POSITION_3D
public static final GLVertexAttribute ATTRIB_POSITION_4D
public static final GLVertexAttribute ATTRIB_COLOR_3D
public static final GLVertexAttribute ATTRIB_COLOR_4D
public static final GLVertexAttribute ATTRIB_NORMAL
public static final GLVertexAttribute ATTRIB_TEXCOORD_1D
public static final GLVertexAttribute ATTRIB_TEXCOORD_2D
public static final GLVertexAttribute ATTRIB_TEXCOORD_3D
public static final GLVertexAttribute ATTRIB_TEXCOORD_4D
public static GLVertexAttribute[] values()
for (GLVertexAttribute c : GLVertexAttribute.values()) System.out.println(c);
public static GLVertexAttribute valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void bind(javax.media.opengl.GL2 gl, int stride, int offset)
public void unbind(javax.media.opengl.GL2 gl)
public static void bind(javax.media.opengl.GL2 gl, int index, int length, int stride, int offset)
public static void unbind(javax.media.opengl.GL2 gl, int index)
Copyright © 2016 Metron, Inc.. All rights reserved.