TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct Vertex in Tinman.Terrain.Rendering

A vertex for 2D rendering.

struct Vertex implements IEquatable<Vertex>

Public / Attributes

Color

Vertex color.

public readonly field Color
type int64

U

Texture U-coordinate.

public readonly field U
type float32

V

Texture V-coordinate.

public readonly field V
type float32

X

Screen X-coordinate.

public readonly field X
type float32

Y

Screen Y-coordinate.

public readonly field Y
type float32

Public / Constructors

Vertex

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 / Methods

Equals

public method Equals (Vertex other)
type bool
params other