C# Class SFML.Graphics.Vertex

Mostra file Open project: SFML/SFML.Net Class Usage Examples

Public Properties

Property Type Description
Color Color
Position Vector2f
TexCoords Vector2f

Public Methods

Method Description
ToString ( ) : string

Provide a string describing the object

Vertex ( Vector2f position ) : System.Runtime.InteropServices

Construct the vertex from its position The vertex color is white and texture coordinates are (0, 0).

Vertex ( Vector2f position, Color color ) : System.Runtime.InteropServices

Construct the vertex from its position and color The texture coordinates are (0, 0).

Vertex ( Vector2f position, Color color, Vector2f texCoords ) : System.Runtime.InteropServices

Construct the vertex from its position, color and texture coordinates

Vertex ( Vector2f position, Vector2f texCoords ) : System.Runtime.InteropServices

Construct the vertex from its position and texture coordinates The vertex color is white.

Method Details

ToString() public method

Provide a string describing the object
public ToString ( ) : string
return string

Vertex() public method

Construct the vertex from its position The vertex color is white and texture coordinates are (0, 0).
public Vertex ( Vector2f position ) : System.Runtime.InteropServices
position Vector2f Vertex position
return System.Runtime.InteropServices

Vertex() public method

Construct the vertex from its position and color The texture coordinates are (0, 0).
public Vertex ( Vector2f position, Color color ) : System.Runtime.InteropServices
position Vector2f Vertex position
color Color Vertex color
return System.Runtime.InteropServices

Vertex() public method

Construct the vertex from its position, color and texture coordinates
public Vertex ( Vector2f position, Color color, Vector2f texCoords ) : System.Runtime.InteropServices
position Vector2f Vertex position
color Color Vertex color
texCoords Vector2f Vertex texture coordinates
return System.Runtime.InteropServices

Vertex() public method

Construct the vertex from its position and texture coordinates The vertex color is white.
public Vertex ( Vector2f position, Vector2f texCoords ) : System.Runtime.InteropServices
position Vector2f Vertex position
texCoords Vector2f Vertex texture coordinates
return System.Runtime.InteropServices

Property Details

Color public_oe property

Color of the vertex
public Color Color
return Color

Position public_oe property

2D position of the vertex
public Vector2f Position
return Vector2f

TexCoords public_oe property

Coordinates of the texture's pixel to map to the vertex
public Vector2f TexCoords
return Vector2f