com.jme3.scene
列挙型 VertexBuffer.Format

java.lang.Object
  上位を拡張 java.lang.Enum<VertexBuffer.Format>
      上位を拡張 com.jme3.scene.VertexBuffer.Format
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Comparable<VertexBuffer.Format>
含まれているクラス:
VertexBuffer

public static enum VertexBuffer.Format
extends java.lang.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, ByteBuffers should be used.


列挙型定数の概要
Byte
          1 byte integer, signed.
Double
          Double precision floating point. 8 bytes, signed.
Float
          Single precision floating point. 4 bytes, signed
Half
          Half precision floating point. 2 bytes, signed.
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.
 
メソッドの概要
 int getComponentSize()
          Returns the size in bytes of this data type.
static VertexBuffer.Format valueOf(java.lang.String name)
          指定した名前を持つこの型の列挙型定数を返します。
static VertexBuffer.Format[] values()
          この列挙型の定数を含む配列を宣言されている順序で返します。
 
クラス java.lang.Enum から継承されたメソッド
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
クラス java.lang.Object から継承されたメソッド
getClass, notify, notifyAll, wait, wait, wait
 

列挙型定数の詳細

Half

public static final VertexBuffer.Format Half
Half precision floating point. 2 bytes, signed.


Float

public static final VertexBuffer.Format Float
Single precision floating point. 4 bytes, signed


Double

public static final VertexBuffer.Format Double
Double precision floating point. 8 bytes, signed. May not be supported by all GPUs.


Byte

public static final VertexBuffer.Format Byte
1 byte integer, signed.


UnsignedByte

public static final VertexBuffer.Format UnsignedByte
1 byte integer, unsigned.


Short

public static final VertexBuffer.Format Short
2 byte integer, signed.


UnsignedShort

public static final VertexBuffer.Format UnsignedShort
2 byte integer, unsigned.


Int

public static final VertexBuffer.Format Int
4 byte integer, signed.


UnsignedInt

public static final VertexBuffer.Format UnsignedInt
4 byte integer, unsigned.

メソッドの詳細

values

public static VertexBuffer.Format[] values()
この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために使用できます:
for (VertexBuffer.Format c : VertexBuffer.Format.values())
    System.out.println(c);

戻り値:
この列挙型の定数を宣言されている順序で含む配列

valueOf

public static VertexBuffer.Format valueOf(java.lang.String name)
指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と厳密に 一致している必要があります (余分な空白文字を含めることはできません)。

パラメータ:
name - 返される列挙型定数の名前
戻り値:
指定された名前を持つ列挙型定数
例外:
java.lang.IllegalArgumentException - 指定された名前を持つ定数を この列挙型が持っていない場合
java.lang.NullPointerException - 引数が null の場合

getComponentSize

public int getComponentSize()
Returns the size in bytes of this data type.

戻り値:
Size in bytes of this data type.