Table of Contents

Class GraphicsResource

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll
public abstract class GraphicsResource : IDisposable
Inheritance
GraphicsResource
Implements
Derived
Inherited Members

Properties

GraphicsDevice

public GraphicsDevice GraphicsDevice { get; }

Property Value

GraphicsDevice

IsDisposed

public bool IsDisposed { get; }

Property Value

bool

Name

public string Name { get; set; }

Property Value

string

Tag

public object Tag { get; set; }

Property Value

object

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 bool

True 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

Event Type

EventHandler<EventArgs>