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
xfloatThe minimum X value.
yfloatThe minimum Y value.
widthfloatThe width.
heightfloatThe height.
minDepthfloatThe minimum depth.
maxDepthfloatThe maximum depth.
Fields
Height
The height.
public float Height
Field Value
MaxDepth
The maximum depth.
public float MaxDepth
Field Value
MinDepth
The minimum depth.
public float MinDepth
Field Value
Width
The width.
public float Width
Field Value
X
The minimum X value.
public float X
Field Value
Y
The minimum Y value.
public float Y
Field Value
Methods
Equals(Viewport)
Element-wise equality.
public bool Equals(Viewport other)
Parameters
otherViewportThe 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.