Otter  0.9.8.91
2d Game Development Framework based on SFML.Net
 All Classes Namespaces Functions Variables Enumerations Properties
Otter.Vert Class Reference

Class that represents a Vertex. Just a wrapper for an SFML Vertex. More...

Public Member Functions

override string ToString ()
 
 Vert (float x, float y, Color color, float u, float v)
 Create a new Vert. More...
 
 Vert (Vert copy)
 Create a new Vert. More...
 
 Vert ()
 Create a new white Vert at 0, 0. More...
 
 Vert (float x, float y)
 Create a new Vert. More...
 
 Vert (float x, float y, float u, float v)
 Create a new Vert. More...
 
 Vert (float x, float y, Color color)
 Create a new Vert. More...
 

Properties

Color Color [get, set]
 The Color of the Vert. More...
 
float X [get, set]
 The X position. More...
 
float Y [get, set]
 The Y position. More...
 
Vector2 Position [get, set]
 The X, Y position as a Vector2. More...
 
Vector2 TexCoords [get, set]
 The X, Y position of the Texture as a Vector2. More...
 
float U [get, set]
 The X position of the Texture. More...
 
float V [get, set]
 The Y position of the Texture. More...
 

Detailed Description

Class that represents a Vertex. Just a wrapper for an SFML Vertex.

Constructor & Destructor Documentation

Otter.Vert.Vert ( float  x,
float  y,
Color  color,
float  u,
float  v 
)

Create a new Vert.

Parameters
xThe X position.
yThe Y position.
colorThe Color.
uThe X position on the Texture.
vThe Y position on the Texture.
Otter.Vert.Vert ( Vert  copy)

Create a new Vert.

Parameters
copyA source Vert to copy.
Otter.Vert.Vert ( )

Create a new white Vert at 0, 0.

Otter.Vert.Vert ( float  x,
float  y 
)

Create a new Vert.

Parameters
xThe X position.
yThe Y position.
Otter.Vert.Vert ( float  x,
float  y,
float  u,
float  v 
)

Create a new Vert.

Parameters
xThe X position.
yThe Y position.
uThe X position on the Texture.
vThe Y position on the Texture.
Otter.Vert.Vert ( float  x,
float  y,
Color  color 
)

Create a new Vert.

Parameters
xThe X position.
yThe Y position.
colorThe Color.

Property Documentation

Color Otter.Vert.Color
getset

The Color of the Vert.

Vector2 Otter.Vert.Position
getset

The X, Y position as a Vector2.

Vector2 Otter.Vert.TexCoords
getset

The X, Y position of the Texture as a Vector2.

float Otter.Vert.U
getset

The X position of the Texture.

float Otter.Vert.V
getset

The Y position of the Texture.

float Otter.Vert.X
getset

The X position.

float Otter.Vert.Y
getset

The Y position.


The documentation for this class was generated from the following file: