Microsoft.Xna.Framework.Graphics
Enum VertexElementUsage

java.lang.Object
  extended by java.lang.Enum<VertexElementUsage>
      extended by Microsoft.Xna.Framework.Graphics.VertexElementUsage
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VertexElementUsage>

public enum VertexElementUsage
extends java.lang.Enum<VertexElementUsage>

Defines usage for vertex elements.

Author:
Halofreak1990

Enum Constant Summary
Binormal
          Vertex binormal data.
BlendIndices
          Blending indices data.
BlendWeight
          Blending weight data.
Color
          Vertex data contains diffuse or specular color.
Depth
          Vertex data contains depth data.
Fog
          Vertex data contains fog data.
Normal
          Vertex normal data.
PointSize
          Point size data.
Position
          Position data.
Sample
          Vertex data contains sampler data.
Tangent
          Vertex tangent data.
TessellateFactor
          Single, positive floating-point value.
TextureCoordinate
          Texture coordinate data.
 
Method Summary
static VertexElementUsage valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static VertexElementUsage[] 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 VertexElementUsage Position
Position data. (Position with UsageIndex = 0 ) specifies the nontransformed position in fixed-function vertex processing and the N-patch tessellator. (Position with UsageIndex = 1) specifies the nontransformed position in the fixed-function vertex shader for skinning.


Color

public static final VertexElementUsage Color
Vertex data contains diffuse or specular color. (Color with UsageIndex = 0) specifies the diffuse color in the fixed-function vertex shader and in pixel shaders prior to ps_3_0. (Color with UsageIndex = 1) specifies the specular color in the fixed-function vertex shader and in pixel shaders prior to ps_3_0.


TextureCoordinate

public static final VertexElementUsage TextureCoordinate
Texture coordinate data. (TextureCoordinate, n) specifies texture coordinates in fixed-function vertex processing and in pixel shaders prior to ps_3_0. These coordinates can be used to pass user-defined data.


Normal

public static final VertexElementUsage Normal
Vertex normal data. (Normal with UsageIndex = 0) specifies vertex normals for fixed-function vertex processing and the N-patch tessellator. (Normal with UsageIndex = 1) specifies vertex normals for fixed-function vertex processing for skinning.


Binormal

public static final VertexElementUsage Binormal
Vertex binormal data.


Tangent

public static final VertexElementUsage Tangent
Vertex tangent data.


BlendIndices

public static final VertexElementUsage BlendIndices
Blending indices data. (BlendIndices with UsageIndex = 0) specifies matrix indices for fixed-function vertex processing using indexed paletted skinning.


BlendWeight

public static final VertexElementUsage BlendWeight
Blending weight data. (BlendWeight with UsageIndex = 0) specifies the blend weights in fixed-function vertex processing.


Depth

public static final VertexElementUsage Depth
Vertex data contains depth data.


Fog

public static final VertexElementUsage Fog
Vertex data contains fog data. (Fog with UsageIndex = 0) specifies a fog blend value to use after pixel shading is finished. This flag applies to pixel shaders prior to version ps_3_0.


PointSize

public static final VertexElementUsage PointSize
Point size data. (PointSize with UsageIndex = 0) specifies the point-size attribute used by the setup engine of the rasterizer to expand a point into a quad for the point- sprite functionality.


Sample

public static final VertexElementUsage Sample
Vertex data contains sampler data. (Sample with UsageIndex = 0) specifies the displacement value to look up.


TessellateFactor

public static final VertexElementUsage TessellateFactor
Single, positive floating-point value. (TessellateFactor with UsageIndex = 0) specifies a tessellation factor used in the tessellation unit to control the rate of tessellation.

Method Detail

values

public static VertexElementUsage[] 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 (VertexElementUsage c : VertexElementUsage.values())
    System.out.println(c);

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

valueOf

public static VertexElementUsage 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