[]
        
(Showing Draft Content)

C1.Util.DX.ViewportF

ViewportF Struct

Defines the viewport dimensions using float coordinates for (X, Y, Width, Height, MinDepth, MaxDepth).

Implements
Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public struct ViewportF : IEquatable<ViewportF>

Constructors

Name Description
ViewportF(RectF)

Initializes a new instance of the ViewportF struct.

ViewportF(float, float, float, float)

Initializes a new instance of the ViewportF struct.

ViewportF(float, float, float, float, float, float)

Initializes a new instance of the ViewportF struct.

Fields

Name Description
Height

Height dimension of the viewport.

MaxDepth

Gets or sets the maximum depth of the clip volume.

MinDepth

Gets or sets the minimum depth of the clip volume.

SizeInBytes

The size of the ViewportF type, in bytes.

Width

Width dimension of the viewport.

X

Position of the pixel coordinate of the upper-left corner of the viewport.

Y

Position of the pixel coordinate of the upper-left corner of the viewport.

Properties

Name Description
Bounds

Gets the size of this resource.

Methods

Name Description
Equals(ViewportF)

Determines whether the specified ViewportF is equal to this instance.

Equals(object)

Determines whether the specified object is equal to this instance.

EqualsRef(ref ViewportF)

Determines whether the specified ViewportF is equal to this instance.

GetHashCode()

Returns a hash code for this instance.

ToString()

Retrieves a string representation of this object.

Operators

Name Description
operator ==(ViewportF, ViewportF)

Determines if the specified values are equal.

operator !=(ViewportF, ViewportF)

Determines if the specified values are not equal.