Click or drag to resize

RenderStateSet Class

Use instances of this class to store a set of render states that need to be applied as a whole. Instances are used in the effects system to set a couple of states before a render pass is performed.
Inheritance Hierarchy
SystemObject
  Fusee.Engine.CoreRenderStateSet

Namespace:  Fusee.Engine.Core
Assembly:  Fusee.Engine.Core (in Fusee.Engine.Core.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class RenderStateSet

The RenderStateSet type exposes the following members.

Constructors
  NameDescription
Public methodRenderStateSet
Initializes a new instance of the RenderStateSet class
Top
Properties
  NameDescription
Public propertyAlphaBlendEnable
Set to true to enable alpha-blended transparency, or false to disable it. The type of alpha blending is determined by the SourceBlend and DestinationBlend render states.
Public propertyBlendFactor
A float4 object representing a color used for a constant blend factor during alpha blending.
Public propertyBlendOperation
The blend operation to perform for blending rgb values (one of add, subtract, inverted subtract, max, or min).
Public propertyBlendOperationAlpha
The blend operation to perform for blending alpha values (one of add, subtract, inverted subtract, max, or min).
Public propertyClipping
Enables or disables primitive (triangle) clipping. Set to true to enable primitive clipping, or false to disable it.
Public propertyCullMode
A value from the Cull enumeration specifying if and how to cull the two different sides of a triangle.
Public propertyDestinationBlend
Contains a member of the Blend enumeration that represents the destination.
Public propertyDestinationBlendAlpha
A member of the Blend enumeration that represents the destination.
Public propertyFillMode
A value from the FillMode enumeration that represents the fill mode to apply when rendering triangles.
Public propertySourceBlend
Contains a member of the Blend enumeration that represents the source.
Public propertySourceBlendAlpha
A member of the Blend enumeration that represents the source.
Public propertyCode exampleStates
Enumerate this set of render states for its contents
Public propertyZEnable
Enables or disables z-buffering (depth buffering).
Public propertyZFunc
Determines the comparison function for the z-buffer test. Valid values are members of the Compare enumeration. The depth value of the pixel is compared to the z-buffer value. If the depth value of the pixel passes the comparison function, the pixel is written.
Public propertyZWriteEnable
Enables or disables depth buffer writing.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetRenderStates
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also