com.jme3.scene
Enum VertexBuffer.Type

java.lang.Object
  extended by java.lang.Enum<VertexBuffer.Type>
      extended by com.jme3.scene.VertexBuffer.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VertexBuffer.Type>
Enclosing class:
VertexBuffer

public static enum VertexBuffer.Type
extends java.lang.Enum<VertexBuffer.Type>

Type of buffer. Specifies the actual attribute it defines.


Enum Constant Summary
BindPoseNormal
          Initial vertex normals, used with animation.
BindPosePosition
          Initial vertex position, used with animation.
BindPoseTangent
          Initial vertex tangents, used with animation.
Binormal
          Binormal vector, normalized (3 floats, optional)
BoneIndex
          Bone indices, used with animation (4 ubytes).
BoneWeight
          Bone weights, used with animation (4 floats).
Color
          Color and Alpha (4 floats)
Index
          Specifies the index buffer, must contain integer data (ubyte, ushort, or uint).
InterleavedData
          Specifies the source data for various vertex buffers when interleaving is used.
MiscAttrib
          Deprecated. 
Normal
          Normal vector, normalized (3 floats).
Position
          Position of the vertex (3 floats)
Size
          The size of the point when using point buffers (float).
Tangent
          Tangent vector, normalized (4 floats) (x,y,z,w) the w component is called the binormal parity, is not normalized and is either 1f or -1f It's used to compuste the direction on the binormal verctor on the GPU at render time.
TexCoord
          Texture coordinate (2 float)
TexCoord2
          Texture coordinate #2
TexCoord3
          Texture coordinate #3
TexCoord4
          Texture coordinate #4
TexCoord5
          Texture coordinate #5
TexCoord6
          Texture coordinate #6
TexCoord7
          Texture coordinate #7
TexCoord8
          Texture coordinate #8
 
Method Summary
static VertexBuffer.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VertexBuffer.Type[] 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

Position

public static final VertexBuffer.Type Position
Position of the vertex (3 floats)


Size

public static final VertexBuffer.Type Size
The size of the point when using point buffers (float).


Normal

public static final VertexBuffer.Type Normal
Normal vector, normalized (3 floats).


TexCoord

public static final VertexBuffer.Type TexCoord
Texture coordinate (2 float)


Color

public static final VertexBuffer.Type Color
Color and Alpha (4 floats)


Tangent

public static final VertexBuffer.Type Tangent
Tangent vector, normalized (4 floats) (x,y,z,w) the w component is called the binormal parity, is not normalized and is either 1f or -1f It's used to compuste the direction on the binormal verctor on the GPU at render time.


Binormal

public static final VertexBuffer.Type Binormal
Binormal vector, normalized (3 floats, optional)


InterleavedData

public static final VertexBuffer.Type InterleavedData
Specifies the source data for various vertex buffers when interleaving is used. By default the format is byte.


MiscAttrib

@Deprecated
public static final VertexBuffer.Type MiscAttrib
Deprecated. 
Do not use.


Index

public static final VertexBuffer.Type Index
Specifies the index buffer, must contain integer data (ubyte, ushort, or uint).


BindPosePosition

public static final VertexBuffer.Type BindPosePosition
Initial vertex position, used with animation. Should have the same format and size as Position. If used with software skinning, the usage should be VertexBuffer.Usage.CpuOnly, and the buffer should be allocated on the heap.


BindPoseNormal

public static final VertexBuffer.Type BindPoseNormal
Initial vertex normals, used with animation. Should have the same format and size as Normal. If used with software skinning, the usage should be VertexBuffer.Usage.CpuOnly, and the buffer should be allocated on the heap.


BoneWeight

public static final VertexBuffer.Type BoneWeight
Bone weights, used with animation (4 floats). If used with software skinning, the usage should be VertexBuffer.Usage.CpuOnly, and the buffer should be allocated on the heap.


BoneIndex

public static final VertexBuffer.Type BoneIndex
Bone indices, used with animation (4 ubytes). If used with software skinning, the usage should be VertexBuffer.Usage.CpuOnly, and the buffer should be allocated on the heap.


TexCoord2

public static final VertexBuffer.Type TexCoord2
Texture coordinate #2


TexCoord3

public static final VertexBuffer.Type TexCoord3
Texture coordinate #3


TexCoord4

public static final VertexBuffer.Type TexCoord4
Texture coordinate #4


TexCoord5

public static final VertexBuffer.Type TexCoord5
Texture coordinate #5


TexCoord6

public static final VertexBuffer.Type TexCoord6
Texture coordinate #6


TexCoord7

public static final VertexBuffer.Type TexCoord7
Texture coordinate #7


TexCoord8

public static final VertexBuffer.Type TexCoord8
Texture coordinate #8


BindPoseTangent

public static final VertexBuffer.Type BindPoseTangent
Initial vertex tangents, used with animation. Should have the same format and size as Tangent. If used with software skinning, the usage should be VertexBuffer.Usage.CpuOnly, and the buffer should be allocated on the heap.

Method Detail

values

public static VertexBuffer.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (VertexBuffer.Type c : VertexBuffer.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static VertexBuffer.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null