GraphicsResourceΒΆ

class GraphicsResource : System.Object, System.IDisposable
readonly GraphicsDevice GraphicsDevice
readonly bool IsDisposed
string Name
System.Object Tag
void 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.

public void Dispose()
public void add_Disposing(System.EventHandler<EventArgs> value)
Parameters:
  • value (System.EventHandler<EventArgs>) –
public void remove_Disposing(System.EventHandler<EventArgs> value)
Parameters:
  • value (System.EventHandler<EventArgs>) –
void set_GraphicsDevice(GraphicsDevice value)
Parameters:
  • value (Microsoft.Xna.Framework.Graphics.GraphicsDevice) –
public string ToString()