Vertex

Description

struct Tinman.Terrain.Rendering.Vertex

A vertex for 2D rendering.

Public / Constructors

Vertex

3 overloads


public constructor Vertex1 → (3)

screen in : Vec2D

Screen coordinates of vertex position.

color opt : int64 = Colors.White

Vertex color.

texture opt : Vec2F = default(Vec2F)

Texture coordinates.

Creates a new instance of Vertex.


public constructor Vertex2 → (3)

screen in : Vec2F

Screen coordinates of vertex position.

color opt : int64 = Colors.White

Vertex color.

texture opt : Vec2F = default(Vec2F)

Texture coordinates.

Creates a new instance of Vertex.


public constructor Vertex3 → (5)

screenX in : float32

Screen X-coordinate of vertex position.

screenY in : float32

Screen Y-coordinate of vertex position.

color opt : int64 = Colors.White

Vertex color.

opt : float32 = 0

Texture U-coordinate.

opt : float32 = 0

Texture V-coordinate.

Creates a new instance of Vertex.

Public / Attributes

Color


public readonly attribute Color → (int64)

Vertex color.

U


public readonly attribute U → (float32)

Texture U-coordinate.

V


public readonly attribute V → (float32)

Texture V-coordinate.

X


public readonly attribute X → (float32)

Screen X-coordinate.

Y


public readonly attribute Y → (float32)

Screen Y-coordinate.