Microsoft.Xna.Framework
Interface IDrawable

All Known Implementing Classes:
DrawableGameComponent

public interface IDrawable

Defines the interface for a drawable game component.

Author:
Halofreak1990

Field Summary
static System.Event<System.EventArgs> DrawOrderChanged
          Raised when the DrawOrder property changes.
static System.Event<System.EventArgs> VisibleChanged
          Raised when the Visible property changes.
 
Method Summary
 void Draw(GameTime gameTime)
          Draws the IDrawable.
 int getDrawOrder()
          The order in which to draw this object relative to other objects.
 boolean getVisible()
          Indicates whether IDrawable.Draw should be called in Game.Draw for this game component.
 

Field Detail

DrawOrderChanged

static final System.Event<System.EventArgs> DrawOrderChanged
Raised when the DrawOrder property changes.


VisibleChanged

static final System.Event<System.EventArgs> VisibleChanged
Raised when the Visible property changes.

Method Detail

getDrawOrder

int getDrawOrder()
The order in which to draw this object relative to other objects. Objects with a lower value are drawn first.


getVisible

boolean getVisible()
Indicates whether IDrawable.Draw should be called in Game.Draw for this game component.


Draw

void Draw(GameTime gameTime)
Draws the IDrawable. Reference page contains links to related conceptual articles.

Parameters:
gameTime - Snapshot of the game's timing state.