public static enum VertexBuffer.Usage extends java.lang.Enum<VertexBuffer.Usage>
Enum Constant and Description |
---|
CpuOnly
Mesh data is not sent to GPU at all.
|
Dynamic
Mesh data is updated occasionally (once per frame or less).
|
Static
Mesh data is sent once and very rarely updated.
|
Stream
Mesh data is updated every frame.
|
Modifier and Type | Method and Description |
---|---|
static VertexBuffer.Usage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VertexBuffer.Usage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VertexBuffer.Usage Static
public static final VertexBuffer.Usage Dynamic
public static final VertexBuffer.Usage Stream
public static final VertexBuffer.Usage CpuOnly
public static VertexBuffer.Usage[] values()
for (VertexBuffer.Usage c : VertexBuffer.Usage.values()) System.out.println(c);
public static VertexBuffer.Usage 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