Microsoft.Xna.Framework
Class DrawableGameComponent
java.lang.Object
Microsoft.Xna.Framework.GameComponent
Microsoft.Xna.Framework.DrawableGameComponent
- All Implemented Interfaces:
- IDrawable, IGameComponent, IUpdateable, System.IDisposable
public class DrawableGameComponent
- extends GameComponent
- implements IDrawable
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawableGameComponent
public DrawableGameComponent(Game game)
getDrawOrder
public int getDrawOrder()
- Description copied from interface:
IDrawable
- The order in which to draw this object relative to other objects. Objects with a lower value are drawn first.
- Specified by:
getDrawOrder
in interface IDrawable
setDrawOrder
public void setDrawOrder(int value)
getGraphicsDevice
public Microsoft.Xna.Framework.Graphics.GraphicsDevice getGraphicsDevice()
getVisible
public boolean getVisible()
- Description copied from interface:
IDrawable
- Indicates whether IDrawable.Draw should be called in Game.Draw for this game component.
- Specified by:
getVisible
in interface IDrawable
setVisible
public void setVisible(boolean value)
Initialize
public void Initialize()
- Specified by:
Initialize
in interface IGameComponent
- Overrides:
Initialize
in class GameComponent
Draw
public void Draw(GameTime gameTime)
- Description copied from interface:
IDrawable
- Draws the IDrawable. Reference page contains links to related conceptual articles.
- Specified by:
Draw
in interface IDrawable
- Parameters:
gameTime
- Snapshot of the game's timing state.