Search Results for

    Show / Hide Table of Contents

    Struct GLBlendStateDescription

    This struct represents all parameters supported in OpenGL for BlendStateDescription.

    Namespace: Evergine.OpenGL
    Assembly: Evergine.OpenGL.dll
    Syntax
    public struct GLBlendStateDescription

    Constructors

    GLBlendStateDescription(ref BlendStateDescription)

    Initializes a new instance of the GLBlendStateDescription struct.

    Declaration
    public GLBlendStateDescription(ref BlendStateDescription description)
    Parameters
    Type Name Description
    BlendStateDescription description

    Evergine RasterizerStateDescription instance.

    Fields

    BlendEnable

    Enables (or disables) blending.

    Declaration
    public bool BlendEnable
    Field Value
    Type Description
    bool

    BlendOperationAlpha

    This blend operation defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.

    Declaration
    public BlendEquationModeEXT BlendOperationAlpha
    Field Value
    Type Description
    BlendEquationModeEXT

    BlendOperationColor

    This blend operation defines how to combine the SrcBlend and DestBlend operations.

    Declaration
    public BlendEquationModeEXT BlendOperationColor
    Field Value
    Type Description
    BlendEquationModeEXT

    ColorWriteChannels

    A write mask.

    Declaration
    public ColorWriteChannels ColorWriteChannels
    Field Value
    Type Description
    ColorWriteChannels

    DestinationBlendAlpha

    This blend option specifies the operation to perform on the current alpha value in the render target. Blend options that end in _COLOR are not allowed. The BlendOpAlpha member defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.

    Declaration
    public BlendingFactor DestinationBlendAlpha
    Field Value
    Type Description
    BlendingFactor

    DestintantionBlendColor

    This blend option specifies the operation to perform on the current RGB value in the render target. The BlendOp member defines how to combine the SrcBlend and DestBlend operations.

    Declaration
    public BlendingFactor DestintantionBlendColor
    Field Value
    Type Description
    BlendingFactor

    SourceBlendAlpha

    This blend option specifies the operation to perform on the alpha value that the pixel shader outputs. Blend options that end in _COLOR are not allowed. The BlendOpAlpha member defines how to combine the SrcBlendAlpha and DestBlendAlpha values.

    Declaration
    public BlendingFactor SourceBlendAlpha
    Field Value
    Type Description
    BlendingFactor

    SourceBlendColor

    This blend option specifies the operation to perform on the RGB value that the pixel shader outputs. The BlendOp member defines how to combine the SrcBlend and DestBlend operations.

    Declaration
    public BlendingFactor SourceBlendColor
    Field Value
    Type Description
    BlendingFactor

    Methods

    Equals(GLBlendStateDescription)

    Returns a hash code for this instance.

    Declaration
    public bool Equals(GLBlendStateDescription other)
    Parameters
    Type Name Description
    GLBlendStateDescription other

    The object used for comparison.

    Returns
    Type Description
    bool

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Equals(object)

    Determines whether the specified object is equal to this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with this instance.

    Returns
    Type Description
    bool

    true if the specified object is equal to this instance; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(GLBlendStateDescription, GLBlendStateDescription)

    Implements the operator ==.

    Declaration
    public static bool operator ==(GLBlendStateDescription value1, GLBlendStateDescription value2)
    Parameters
    Type Name Description
    GLBlendStateDescription value1

    The first value.

    GLBlendStateDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(GLBlendStateDescription, GLBlendStateDescription)

    Implements the operator ==.

    Declaration
    public static bool operator !=(GLBlendStateDescription value1, GLBlendStateDescription value2)
    Parameters
    Type Name Description
    GLBlendStateDescription value1

    The first value.

    GLBlendStateDescription value2

    The second value.

    Returns
    Type Description
    bool

    The result of the operator.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX