public class AttributeOffsets
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.graphics.VertexAttributes |
attributes |
int |
biNormal |
int |
color0 |
int |
color1 |
int |
color2 |
int |
color3 |
int |
generic0 |
int |
generic1 |
int |
generic2 |
int |
generic3 |
int |
normal |
int |
position |
int |
tangent |
int |
textureCoordinate0 |
int |
textureCoordinate1 |
int |
textureCoordinate2 |
int |
textureCoordinate3 |
| Constructor and Description |
|---|
AttributeOffsets(com.badlogic.gdx.graphics.VertexAttributes attributes) |
| Modifier and Type | Method and Description |
|---|---|
int |
get(int attributeIndex)
Get the VertexAttribute offset, in float-size units, looking it up by its index in the VertexAttributes.
|
int |
get(java.lang.String alias)
Get the VertexAttribute offset, in float-size units, looking it up by its
alias. |
void |
udpate()
Refreshes the mapping of aliases to offsets.
|
public final com.badlogic.gdx.graphics.VertexAttributes attributes
public final int position
public final int color0
public final int color1
public final int color2
public final int color3
public final int textureCoordinate0
public final int textureCoordinate1
public final int textureCoordinate2
public final int textureCoordinate3
public final int generic0
public final int generic1
public final int generic2
public final int generic3
public final int normal
public final int tangent
public final int biNormal
public AttributeOffsets(com.badlogic.gdx.graphics.VertexAttributes attributes)
public void udpate()
alias has been changed.public int get(java.lang.String alias)
alias.public int get(int attributeIndex)
java.lang.IndexOutOfBoundsException - If the given attribute index does not exist in the VertexAttributes.