C# Class TerrainDisplay.VertexPositionNormalColored

Struct outlining our custom vertex
Show file 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 property

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

Normal public property

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

Position public property

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

SizeInBytes public static property

Memory size for a VertexPositionNormalColored
public static int SizeInBytes
return int

VertexElements public static property

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