DrawableGameComponent Members
The following tables list the members exposed by the DrawableGameComponent type.
Public Constructors
Name | Description | |
---|---|---|
DrawableGameComponent | Creates a new instance of DrawableGameComponent. |
Public Properties
Name | Description | |
---|---|---|
DrawOrder | Order in which the component should be drawn, relative to other components that are in the same GameComponentCollection. | |
Enabled | (Inherited from GameComponent.) | |
Game | (Inherited from GameComponent.) | |
GraphicsDevice | The GraphicsDevice the DrawableGameComponent is associated with. | |
UpdateOrder | (Inherited from GameComponent.) | |
Visible | Indicates whether Draw should be called. |
Public Methods
Name | Description | |
---|---|---|
Dispose | Overloaded. Releases the resources used by the DrawableGameComponent class. | |
Draw | Called when the DrawableGameComponent needs to be drawn. Override this method with component-specific drawing code. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Initialize | Initializes the component. Override this method to load any non-graphics resources and query for any required services. | |
ToString | (Inherited from Object.) | |
Update | (Inherited from GameComponent.) |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from GameComponent.) | |
LoadContent | Called when graphics resources need to be loaded. Override this method to load any component-specific graphics resources. | |
MemberwiseClone | (Inherited from Object.) | |
OnDrawOrderChanged | Called when the DrawOrder property changes. Raises the DrawOrderChanged event. | |
OnEnabledChanged | (Inherited from GameComponent.) | |
OnUpdateOrderChanged | (Inherited from GameComponent.) | |
OnVisibleChanged | Called when the Visible property changes. Raises the VisibleChanged event. | |
UnloadContent | Called when graphics resources need to be unloaded. Override this method to unload any component-specific graphics resources. |
Public Events
Name | Description | |
---|---|---|
Disposed | (Inherited from GameComponent.) | |
DrawOrderChanged | Raised when the DrawOrder property changes. | |
EnabledChanged | (Inherited from GameComponent.) | |
UpdateOrderChanged | (Inherited from GameComponent.) | |
VisibleChanged | Raised when the Visible property changes. |
See Also
Reference
DrawableGameComponent Class
Microsoft.Xna.Framework Namespace