|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<VertexBuffer.Type>
com.jme3.scene.VertexBuffer.Type
public static 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 |
---|
public static final VertexBuffer.Type Position
public static final VertexBuffer.Type Size
public static final VertexBuffer.Type Normal
public static final VertexBuffer.Type TexCoord
public static final VertexBuffer.Type Color
public static final VertexBuffer.Type Tangent
public static final VertexBuffer.Type Binormal
public static final VertexBuffer.Type InterleavedData
@Deprecated public static final VertexBuffer.Type MiscAttrib
public static final VertexBuffer.Type Index
public static final VertexBuffer.Type BindPosePosition
Position
.
If used with software skinning, the usage should be
VertexBuffer.Usage.CpuOnly
, and the buffer should be allocated
on the heap.
public static final VertexBuffer.Type BindPoseNormal
Normal
.
If used with software skinning, the usage should be
VertexBuffer.Usage.CpuOnly
, and the buffer should be allocated
on the heap.
public static final VertexBuffer.Type BoneWeight
VertexBuffer.Usage.CpuOnly
, and the buffer should be allocated
on the heap.
public static final VertexBuffer.Type BoneIndex
VertexBuffer.Usage.CpuOnly
, and the buffer should be allocated
on the heap.
public static final VertexBuffer.Type TexCoord2
public static final VertexBuffer.Type TexCoord3
public static final VertexBuffer.Type TexCoord4
public static final VertexBuffer.Type TexCoord5
public static final VertexBuffer.Type TexCoord6
public static final VertexBuffer.Type TexCoord7
public static final VertexBuffer.Type TexCoord8
public static final VertexBuffer.Type BindPoseTangent
Tangent
.
If used with software skinning, the usage should be
VertexBuffer.Usage.CpuOnly
, and the buffer should be allocated
on the heap.
Method Detail |
---|
public static VertexBuffer.Type[] values()
for (VertexBuffer.Type c : VertexBuffer.Type.values()) System.out.println(c);
public static VertexBuffer.Type 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |