Struct RasterizerStateDescription
- Namespace
- Pie
- Assembly
- Pie.dll
Describes a RasterizerState.
public struct RasterizerStateDescription : IEquatable<RasterizerStateDescription>
- Implements
- Inherited Members
Constructors
RasterizerStateDescription(CullFace, CullDirection, FillMode, bool)
Create a new RasterizerStateDescription with the given parameters.
public RasterizerStateDescription(CullFace cullFace, CullDirection cullDirection, FillMode fillMode, bool scissorTest)
Parameters
cullFace
CullFaceThe face to cull.
cullDirection
CullDirectionThe winding order of the vertices. This sets the front face's direction.
fillMode
FillModeThe FillMode.
scissorTest
boolWhether or not the scissor test is enabled.
Fields
CullClockwise
Cull back faces in the clockwise direction, with a solid FillMode, and with the scissor test disabled.
public static readonly RasterizerStateDescription CullClockwise
Field Value
- RasterizerStateDescription
- Describes a .
CullCounterClockwise
Cull back faces in the counter-clockwise direction, with a solid FillMode, and with the scissor test disabled.
public static readonly RasterizerStateDescription CullCounterClockwise
Field Value
- RasterizerStateDescription
- Describes a .
CullDirection
The winding order of the vertices. This sets the front face's direction.
public CullDirection CullDirection
Field Value
- CullDirection
- Describes a .
CullFace
The face to cull.
public CullFace CullFace
Field Value
- CullFace
- Describes a .
CullNone
No culling whatsoever, with a solid FillMode, and with the scissor test disabled.
public static readonly RasterizerStateDescription CullNone
Field Value
- RasterizerStateDescription
- Describes a .
FillMode
The FillMode.
public FillMode FillMode
Field Value
- FillMode
- Describes a .
ScissorTest
Whether or not the scissor test is enabled.
public bool ScissorTest
Field Value
- bool
- Describes a .
Methods
Equals(RasterizerStateDescription)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RasterizerStateDescription other)
Parameters
other
RasterizerStateDescriptionAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
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.
Operators
operator ==(RasterizerStateDescription, RasterizerStateDescription)
public static bool operator ==(RasterizerStateDescription left, RasterizerStateDescription right)
Parameters
left
RasterizerStateDescription- Describes a .
right
RasterizerStateDescription- Describes a .
Returns
- bool
- Describes a .
operator !=(RasterizerStateDescription, RasterizerStateDescription)
public static bool operator !=(RasterizerStateDescription left, RasterizerStateDescription right)
Parameters
left
RasterizerStateDescription- Describes a .
right
RasterizerStateDescription- Describes a .
Returns
- bool
- Describes a .