Class GraphicsResource
A resource interface that provides common actions for all resources.
Inheritance
GraphicsResource
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class GraphicsResource
Constructors
GraphicsResource(GraphicsContext)
Initializes a new instance of the GraphicsResource class.
Declaration
protected GraphicsResource(GraphicsContext context)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | context | The device context. |
Fields
Context
Reference to the device context.
Declaration
public GraphicsContext Context
Field Value
Type | Description |
---|---|
GraphicsContext |
Properties
Disposed
Gets a value indicating whether the graphic resource has been disposed of.
Declaration
public bool Disposed { get; }
Property Value
Type | Description |
---|---|
bool |
NativePointer
Gets the native pointer.
Declaration
public abstract nint NativePointer { get; }
Property Value
Type | Description |
---|---|
nint |
Methods
Destroy()
Destroy graphics native resources.
Declaration
protected abstract void Destroy()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Releases unmanaged and optionally managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
~GraphicsResource()
Finalizes an instance of the GraphicsResource class.
Declaration
protected ~GraphicsResource()