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 |
disposed
Indicates if the instance has been disposed.
Declaration
protected bool disposed
Field Value
Type | Description |
---|---|
bool |
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
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public abstract void Dispose()