C# Class Protogame.VertexPositionNormal

Show file Open project: RedpointGames/Protogame Class Usage Examples

Public Properties

Property Type Description
Normal Microsoft.Xna.Framework.Vector3
Position Microsoft.Xna.Framework.Vector3
VertexDeclaration Microsoft.Xna.Framework.Graphics.VertexDeclaration

Private Properties

Property Type Description
VertexPositionNormal System.Runtime.InteropServices

Public Methods

Method Description
Equals ( VertexPositionNormal other ) : bool

Indicates whether this instance and a specified object are equal.

Equals ( object obj ) : bool

Indicates whether this instance and a specified object are equal.

GetHashCode ( ) : int

Calculates the hash code representing the current instance.

ToString ( ) : string

Returns a string representation of the vertex.

VertexPositionNormal ( Microsoft.Xna.Framework.Vector3 position, Microsoft.Xna.Framework.Vector3 normal ) : System.Runtime.InteropServices

Initializes a new instance of the VertexPositionNormal struct.

operator ( ) : bool

The equality operator for this vertex structure.

Private Methods

Method Description
VertexPositionNormal ( ) : System.Runtime.InteropServices

Initializes static members of the VertexPositionNormal struct.

Method Details

Equals() public method

Indicates whether this instance and a specified object are equal.
public Equals ( VertexPositionNormal other ) : bool
other VertexPositionNormal /// The object to compare this instance to. ///
return bool

Equals() public method

Indicates whether this instance and a specified object are equal.
public Equals ( object obj ) : bool
obj object /// The object to compare this instance to. ///
return bool

GetHashCode() public method

Calculates the hash code representing the current instance.
public GetHashCode ( ) : int
return int

ToString() public method

Returns a string representation of the vertex.
public ToString ( ) : string
return string

VertexPositionNormal() public method

Initializes a new instance of the VertexPositionNormal struct.
public VertexPositionNormal ( Microsoft.Xna.Framework.Vector3 position, Microsoft.Xna.Framework.Vector3 normal ) : System.Runtime.InteropServices
position Microsoft.Xna.Framework.Vector3 /// The position of the vertex. ///
normal Microsoft.Xna.Framework.Vector3 /// The normal of the vertex. ///
return System.Runtime.InteropServices

operator() public static method

The equality operator for this vertex structure.
public static operator ( ) : bool
return bool

Property Details

Normal public property

The normal of the vertex.
public Vector3,Microsoft.Xna.Framework Normal
return Microsoft.Xna.Framework.Vector3

Position public property

The position of the vertex.
public Vector3,Microsoft.Xna.Framework Position
return Microsoft.Xna.Framework.Vector3

VertexDeclaration public static property

The vertex declaration structure.
public static VertexDeclaration,Microsoft.Xna.Framework.Graphics VertexDeclaration
return Microsoft.Xna.Framework.Graphics.VertexDeclaration