Struct Viewport
Describes a 3-dimensional region.
Implements
System.IEquatable <Viewport>
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct Viewport : IEquatable<Viewport>
Constructors
Viewport(Single, Single, Single, Single, Single, Single)
Constructs a new Viewport.
Declaration
public Viewport(float x, float y, float width, float height, float minDepth, float maxDepth)
Parameters
Type | Name | Description |
---|---|---|
System. |
x | The minimum X value. |
System. |
y | The minimum Y value. |
System. |
width | The width. |
System. |
height | The height. |
System. |
minDepth | The minimum depth. |
System. |
maxDepth | The maximum depth. |
Fields
Height
The height.
Declaration
public float Height
Field Value
Type | Description |
---|---|
System. |
MaxDepth
The maximum depth.
Declaration
public float MaxDepth
Field Value
Type | Description |
---|---|
System. |
MinDepth
The minimum depth.
Declaration
public float MinDepth
Field Value
Type | Description |
---|---|
System. |
Width
The width.
Declaration
public float Width
Field Value
Type | Description |
---|---|
System. |
X
The minimum X value.
Declaration
public float X
Field Value
Type | Description |
---|---|
System. |
Y
The minimum Y value.
Declaration
public float Y
Field Value
Type | Description |
---|---|
System. |
Methods
Equals(Viewport)
Element-wise equality.
Declaration
public bool Equals(Viewport other)
Parameters
Type | Name | Description |
---|---|---|
Viewport | other | The instance to compare to. |
Returns
Type | Description |
---|---|
System. |
True if all elements are equal; false otherswise. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
A 32-bit signed integer that is the hash code for this instance. |
Overrides
System.ValueType.GetHashCode()
Implements
System.IEquatable<T>