Class GraphicsResource
A resource interface provides common actions on all resources.
Inheritance
GraphicsResource
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public abstract class GraphicsResource : IDisposable
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
The device context reference.
Declaration
public GraphicsContext Context
Field Value
Type | Description |
---|---|
GraphicsContext |
disposed
Holds 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.
Declaration
public bool Disposed { get; }
Property Value
Type | Description |
---|---|
bool |
NativePointer
Gets the native pointer.
Declaration
public abstract IntPtr NativePointer { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Methods
Dispose()
Dispose this instance.
Declaration
public abstract void Dispose()