Package com.jme3.scene
Enum Class VertexBuffer.Format
- All Implemented Interfaces:
Serializable
,Comparable<VertexBuffer.Format>
,Constable
- Enclosing class:
- VertexBuffer
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription1 byte integer, signed.Double precision floating point.Single precision floating point.Half precision floating point.4 byte integer, signed.2 byte integer, signed.1 byte integer, unsigned.4 byte integer, unsigned.2 byte integer, unsigned. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the size in bytes of this data type.static VertexBuffer.Format
Returns the enum constant of this class with the specified name.static VertexBuffer.Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Half
Half precision floating point. 2 bytes, signed. -
Float
Single precision floating point. 4 bytes, signed -
Double
Double precision floating point. 8 bytes, signed. May not be supported by all GPUs. -
Byte
1 byte integer, signed. -
UnsignedByte
1 byte integer, unsigned. -
Short
2 byte integer, signed. -
UnsignedShort
2 byte integer, unsigned. -
Int
4 byte integer, signed. -
UnsignedInt
4 byte integer, unsigned.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getComponentSize
public int getComponentSize()Returns the size in bytes of this data type.- Returns:
- Size in bytes of this data type.
-