Microsoft.Xna.Framework.Graphics
Class GraphicsResource

java.lang.Object
  extended by Microsoft.Xna.Framework.Graphics.GraphicsResource
All Implemented Interfaces:
IDisposable
Direct Known Subclasses:
BlendState, DepthStencilState, Effect, RasterizerState, SamplerState, SpriteBatch, Texture, VertexBuffer, VertexDeclaration

public abstract class GraphicsResource
extends java.lang.Object
implements IDisposable

Queries and prepares resources.

Author:
Halofreak1990

Field Summary
protected  GraphicsDevice _parent
           
 Event<EventArgs> Disposing
          Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.
 java.lang.String Name
          Gets the name of the Resource.
 java.lang.Object Tag
          Gets the resource tags for this resource.
 
Method Summary
 void Dispose()
          Immediately releases the unmanaged resources used by this Object.
protected  void Dispose(boolean disposing)
          Immediately releases the unmanaged resources used by this Object.
protected  void finalize()
          Allows this Object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.
 GraphicsDevice GraphicsDevice()
          Gets the GraphicsDevice associated with this GraphicsResource.
 boolean IsDisposed()
          Gets a value that indicates whether the object is disposed.
protected  void raise_disposing(java.lang.Object sender, EventArgs e)
           
 java.lang.String toString()
          Gets a string representation of the current instance.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_parent

protected GraphicsDevice _parent

Name

public java.lang.String Name
Gets the name of the Resource.


Tag

public java.lang.Object Tag
Gets the resource tags for this resource.


Disposing

public Event<EventArgs> Disposing
Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.

Method Detail

GraphicsDevice

public GraphicsDevice GraphicsDevice()
Gets the GraphicsDevice associated with this GraphicsResource.


IsDisposed

public boolean IsDisposed()
Gets a value that indicates whether the object is disposed.


Dispose

public void Dispose()
Immediately releases the unmanaged resources used by this Object.

Specified by:
Dispose in interface IDisposable

Dispose

protected void Dispose(boolean disposing)
Immediately releases the unmanaged resources used by this Object.

Parameters:
disposing -

finalize

protected void finalize()
Allows this Object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.

Overrides:
finalize in class java.lang.Object

raise_disposing

protected void raise_disposing(java.lang.Object sender,
                               EventArgs e)

toString

public java.lang.String toString()
Gets a string representation of the current instance.

Overrides:
toString in class java.lang.Object