Class GraphicsResource
public abstract class GraphicsResource : IDisposable
- Inheritance
-
GraphicsResource
- Implements
- Derived
- Inherited Members
Properties
GraphicsDevice
public GraphicsDevice GraphicsDevice { get; }
Property Value
IsDisposed
public bool IsDisposed { get; }
Property Value
Name
public string Name { get; set; }
Property Value
Tag
public object Tag { get; set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
The method that derived classes should override to implement disposing of managed and native resources.
protected virtual void Dispose(bool disposing)
Parameters
disposing
boolTrue if managed objects should be disposed.
Remarks
Native resources should always be released regardless of the value of the disposing parameter.
~GraphicsResource()
protected ~GraphicsResource()
GraphicsDeviceResetting()
Called before the device is reset. Allows graphics resources to invalidate their state so they can be recreated after the device reset. Warning: This may be called after a call to Dispose() up until the resource is garbage collected.
protected virtual void GraphicsDeviceResetting()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
Disposing
public event EventHandler<EventArgs> Disposing