C# Class TerrainDisplay.VertexPositionNormalColored

Struct outlining our custom vertex
Exibir arquivo Open project: WCell/WCell-Terrain

Public Properties

Property Type Description
Color Microsoft.Xna.Framework.Color
Normal Microsoft.Xna.Framework.Vector3
Position Microsoft.Xna.Framework.Vector3
SizeInBytes int
VertexElements Microsoft.Xna.Framework.Graphics.VertexElement[]

Public Methods

Method Description
VertexPositionNormalColored ( Microsoft.Xna.Framework.Vector3 position, Microsoft.Xna.Framework.Color color, Microsoft.Xna.Framework.Vector3 normal ) : Microsoft.Xna.Framework

Constructor for a VertexPositionNormalColored

Method Details

VertexPositionNormalColored() public method

Constructor for a VertexPositionNormalColored
public VertexPositionNormalColored ( Microsoft.Xna.Framework.Vector3 position, Microsoft.Xna.Framework.Color color, Microsoft.Xna.Framework.Vector3 normal ) : Microsoft.Xna.Framework
position Microsoft.Xna.Framework.Vector3 Vector3 Position of the vertex
color Microsoft.Xna.Framework.Color Color of the vertex
normal Microsoft.Xna.Framework.Vector3 Normal vector of the vertex
return Microsoft.Xna.Framework

Property Details

Color public_oe property

Color of this vertex
public Color,Microsoft.Xna.Framework Color
return Microsoft.Xna.Framework.Color

Normal public_oe property

Normal vector for this Vertex
public Vector3,Microsoft.Xna.Framework Normal
return Microsoft.Xna.Framework.Vector3

Position public_oe property

Vector3 Position for this vertex
public Vector3,Microsoft.Xna.Framework Position
return Microsoft.Xna.Framework.Vector3

SizeInBytes public_oe static_oe property

Memory size for a VertexPositionNormalColored
public static int SizeInBytes
return int

VertexElements public_oe static_oe property

VertexElement array (used for rendering)
public static VertexElement[],Microsoft.Xna.Framework.Graphics VertexElements
return Microsoft.Xna.Framework.Graphics.VertexElement[]