Search Results for

    Show / Hide Table of Contents

    Class GLSamplerState

    This struct represent all parameters supported in OpenGL for BlendState.

    Inheritance
    object
    GraphicsResource
    SamplerState
    GLSamplerState
    Implements
    ILoadable
    IDependencyObject
    Inherited Members
    SamplerState.Id
    SamplerState.ReaderVersion
    SamplerState.Invalidated
    SamplerState.Dependencies
    SamplerState.Description
    SamplerState.Invalidate(ILoadable)
    SamplerState.ReleaseUnusedMemory()
    GraphicsResource.disposed
    GraphicsResource.Context
    GraphicsResource.Disposed
    Namespace: Evergine.OpenGL
    Assembly: Evergine.OpenGL.dll
    Syntax
    public class GLSamplerState : SamplerState, ILoadable, IDependencyObject

    Constructors

    GLSamplerState(GraphicsContext, ref SamplerStateDescription)

    Initializes a new instance of the GLSamplerState class.

    Declaration
    public GLSamplerState(GraphicsContext context, ref SamplerStateDescription description)
    Parameters
    Type Name Description
    GraphicsContext context

    The graphics context. GraphicsContext.

    SamplerStateDescription description

    The sampler state description. SamplerStateDescription.

    Fields

    StateCache

    Current SamplerStateDescriptionGL applicated.

    Declaration
    public Dictionary<int, GLSamplerStateDescription> StateCache
    Field Value
    Type Description
    Dictionary<int, GLSamplerStateDescription>

    Properties

    Name

    Gets or sets a string identifying this instance. Can be used in graphics debuggers tools.

    Declaration
    public override string Name { get; set; }
    Property Value
    Type Description
    string
    Overrides
    SamplerState.Name

    NativePointer

    Gets the native pointer.

    Declaration
    public override IntPtr NativePointer { get; }
    Property Value
    Type Description
    IntPtr
    Overrides
    GraphicsResource.NativePointer

    Methods

    Apply(GLTexture)

    Apply all BlendState values.

    Declaration
    public void Apply(GLTexture texture)
    Parameters
    Type Name Description
    GLTexture texture

    The texture where we want to apply an specific sampler state.

    Dispose()

    Dispose this instance.

    Declaration
    public override void Dispose()
    Overrides
    SamplerState.Dispose()

    Implements

    ILoadable
    IDependencyObject

    Extension Methods

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