Table of Contents

Struct Viewport

Namespace
NeoVeldrid
Assembly
NeoVeldrid.dll

Describes a 3-dimensional region.

public struct Viewport : IEquatable<Viewport>
Implements
Inherited Members

Constructors

Viewport(float, float, float, float, float, float)

Constructs a new Viewport.

public Viewport(float x, float y, float width, float height, float minDepth, float maxDepth)

Parameters

x float

The minimum X value.

y float

The minimum Y value.

width float

The width.

height float

The height.

minDepth float

The minimum depth.

maxDepth float

The maximum depth.

Fields

Height

The height.

public float Height

Field Value

float

MaxDepth

The maximum depth.

public float MaxDepth

Field Value

float

MinDepth

The minimum depth.

public float MinDepth

Field Value

float

Width

The width.

public float Width

Field Value

float

X

The minimum X value.

public float X

Field Value

float

Y

The minimum Y value.

public float Y

Field Value

float

Methods

Equals(Viewport)

Element-wise equality.

public bool Equals(Viewport other)

Parameters

other Viewport

The instance to compare to.

Returns

bool

True if all elements are equal; false otherswise.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.