public static enum VertexBuffer.Format extends java.lang.Enum<VertexBuffer.Format>
UnsignedShort
formatted buffer should use the
class ShortBuffer
(e.g. the closest resembling type).
For the Half
type, ByteBuffer
s should
be used.Enum Constant and Description |
---|
Byte
1 byte integer, signed.
|
Double
Double precision floating point.
|
Float
Single precision floating point.
|
Half
Half precision floating point.
|
Int
4 byte integer, signed.
|
Short
2 byte integer, signed.
|
UnsignedByte
1 byte integer, unsigned.
|
UnsignedInt
4 byte integer, unsigned.
|
UnsignedShort
2 byte integer, unsigned.
|
Modifier and Type | Method and Description |
---|---|
int |
getComponentSize()
Returns the size in bytes of this data type.
|
static VertexBuffer.Format |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VertexBuffer.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VertexBuffer.Format Half
public static final VertexBuffer.Format Float
public static final VertexBuffer.Format Double
public static final VertexBuffer.Format Byte
public static final VertexBuffer.Format UnsignedByte
public static final VertexBuffer.Format Short
public static final VertexBuffer.Format UnsignedShort
public static final VertexBuffer.Format Int
public static final VertexBuffer.Format UnsignedInt
public static VertexBuffer.Format[] values()
for (VertexBuffer.Format c : VertexBuffer.Format.values()) System.out.println(c);
public static VertexBuffer.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 nullpublic int getComponentSize()