A vertex for 2D rendering.
struct
|
Vertex
|
implements
|
IEquatable<Vertex>
|
Vertex color.
public
readonly
field
|
Color
|
||
type
|
int64
|
Texture U-coordinate.
public
readonly
field
|
U
|
||
type
|
float32
|
Texture V-coordinate.
public
readonly
field
|
V
|
||
type
|
float32
|
Screen X-coordinate.
public
readonly
field
|
X
|
||
type
|
float32
|
Screen Y-coordinate.
public
readonly
field
|
Y
|
||
type
|
float32
|
Creates a new instance of Vertex.
public
constructor
|
Vertex
(Vec2D screen,
int64 color = Colors.White,
Vec2F texture = default(Vec2F))
|
||
params
|
screen
|
Screen coordinates of vertex position. | |
color
|
Vertex color. Defaults to White. | ||
texture
|
Texture coordinates. Defaults to Zero. |
Creates a new instance of Vertex.
public
constructor
|
Vertex
(Vec2F screen,
int64 color = Colors.White,
Vec2F texture = default(Vec2F))
|
||
params
|
screen
|
Screen coordinates of vertex position. | |
color
|
Vertex color. Defaults to White. | ||
texture
|
Texture coordinates. Defaults to Zero. |
Creates a new instance of Vertex.
public
constructor
|
Vertex
(float32 screenX,
float32 screenY,
int64 color = Colors.White,
float32 u = 0,
float32 v = 0)
|
||
params
|
screenX
|
Screen X-coordinate of vertex position. | |
screenY
|
Screen Y-coordinate of vertex position. | ||
color
|
Vertex color. Defaults to White. | ||
u
|
Texture
U-coordinate.
Defaults
to
0 . |
||
v
|
Texture
V-coordinate.
Defaults
to
0 . |
public
method
|
Equals
(Vertex other)
|
||
type
|
bool
|
||
params
|
other
|