|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.VertexAttribute
public final class VertexAttribute
A single vertex attribute defined by its VertexAttributes.Usage
, its number of components and its shader alias. The Usage is needed for
the fixed function pipeline of OpenGL ES 1.x. Generic attributes are not supported in the fixed function pipeline. The number
of components defines how many components the attribute has. The alias defines to which shader attribute this attribute should
bind. The alias is used by a Mesh
when drawing with a ShaderProgram
. The alias can be changed at any time.
Field Summary | |
---|---|
java.lang.String |
alias
the alias for the attribute used in a ShaderProgram |
int |
numComponents
the number of components this attribute has |
int |
offset
the offset of this attribute in bytes, don't change this! |
int |
usage
the attribute VertexAttributes.Usage |
Constructor Summary | |
---|---|
VertexAttribute(int usage,
int numComponents,
java.lang.String alias)
Constructs a new VertexAttribute. |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int usage
VertexAttributes.Usage
public final int numComponents
public int offset
public java.lang.String alias
ShaderProgram
Constructor Detail |
---|
public VertexAttribute(int usage, int numComponents, java.lang.String alias)
usage
- the usage, used for the fixed function pipeline. Generic attributes are not supported in the fixed function
pipeline.numComponents
- the number of components of this attribute, must be between 1 and 4.alias
- the alias used in a shader for this attribute. Can be changed after construction.
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |