Class GLSamplerState
This struct represents all parameters supported in OpenGL for BlendState.
Inherited Members
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. See GraphicsContext. |
SamplerStateDescription | description | The sampler state description. See SamplerStateDescription. |
Fields
StateCache
Current applied SamplerStateDescriptionGL.
Declaration
public Dictionary<int, GLSamplerStateDescription> StateCache
Field Value
Type | Description |
---|---|
Dictionary<int, GLSamplerStateDescription> |
Properties
Name
Gets or sets a string identifying this instance. It can be used in graphics debugger tools.
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
NativePointer
Gets the native pointer.
Declaration
public override nint NativePointer { get; }
Property Value
Type | Description |
---|---|
nint |
Overrides
Methods
Apply(GLTexture)
Apply all BlendState values.
Declaration
public void Apply(GLTexture texture)
Parameters
Type | Name | Description |
---|---|---|
GLTexture | texture | The texture to which we want to apply a specific sampler state. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()