|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<VertexBuffer.Format>
com.jme3.scene.VertexBuffer.Format
public static enum VertexBuffer.Format
Specifies format of the data stored in the buffer.
This should directly correspond to the buffer's class, for example,
an 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic int getComponentSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |