RenderState
Overview
RenderState is a class in Aspose.3D FOSS for .NET.
Inherits from: IDisposable, IComparable<RenderState>.
Render state for building the pipeline The changes made on render state will not affect the created pipeline instances.
This class provides 5 methods for working with RenderState objects in .NET programs.
Available methods include: CompareTo, Dispose, Equals, GetHashCode, RenderState.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Blend, BlendColor, CullFace, CullFaceMode, DepthFunction, DepthMask, and 11 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Blend | bool | Read/Write | Enable or disable the fragment blending. |
BlendColor | FVector4 | Read/Write | Gets or sets the blend color where used in |
SourceBlendFactor | BlendFactor | Read/Write | Gets or sets how the color is blended. |
DestinationBlendFactor | BlendFactor | Read/Write | Gets or sets how the color is blended. |
CullFace | bool | Read/Write | Enable or disable cull face |
CullFaceMode | CullFaceMode | Read/Write | Gets or sets which face will be culled. |
FrontFace | FrontFace | Read/Write | Gets or sets which order is front face. |
DepthTest | bool | Read/Write | Enable or disable the depth test. |
DepthMask | bool | Read/Write | Enable or disable the depth writing. |
DepthFunction | CompareFunction | Read/Write | Gets or sets the compare function used in depth test |
StencilTest | bool | Read/Write | Enable or disable the stencil test. |
StencilReference | int | Read/Write | Gets or sets the reference value for the stencil test. |
StencilMask | uint | Read/Write | Gets or sets the mask that is ANDed with the both reference and stored stencil value when test is done. |
StencilFrontFace | StencilState | Read | Gets the stencil state for front face. |
StencilBackFace | StencilState | Read | Gets the stencil state for back face. |
ScissorTest | bool | Read/Write | Enable or disable scissor test |
PolygonMode | PolygonMode | Read/Write | Gets or sets the polygon’s render mode. |
Methods
| Signature | Description |
|---|---|
RenderState() | Constructor of |
Equals(obj: object) | Not implemented in the FOSS edition — throws at runtime. Returns a value indicating whether this instance is equal to a specified object. |
GetHashCode() | Not implemented in the FOSS edition — throws at runtime. Returns the hash code for this instance. |
Dispose() | Dispose the and release all internal resources. |
CompareTo(other: RenderState) | Not implemented in the FOSS edition — throws at runtime. Compare the render state with another instance |