DrawableGameComponent Members

The following tables list the members exposed by the DrawableGameComponent type.

Public MethodDrawableGameComponentCreates a new instance of DrawableGameComponent.

Public PropertyDrawOrderOrder in which the component should be drawn, relative to other components that are in the same GameComponentCollection.
Public PropertyEnabled (Inherited from GameComponent.)
Public PropertyUpdateOrder (Inherited from GameComponent.)
Public PropertyVisibleIndicates whether Draw should be called.

Protected PropertyGame (Inherited from GameComponent.)
Protected PropertyGraphicsDeviceThe GraphicsDevice the DrawableGameComponent is associated with.

Public MethodDisposeOverloaded. Releases the resources used by the DrawableGameComponent class.
Public MethodDrawCalled when the DrawableGameComponent needs to be drawn. Override this method with component-specific drawing code.
Public MethodEquals (Inherited from Object.)
Public MethodGetHashCode (Inherited from Object.)
Public MethodGetType (Inherited from Object.)
Public MethodInitializeInitializes the component. Override this method to load any non-graphics resources and query for any required services.
Public MethodReferenceEquals (Inherited from Object.)
Public MethodToString (Inherited from Object.)
Public MethodUpdate (Inherited from GameComponent.)

Protected MethodFinalize (Inherited from GameComponent.)
Protected MethodLoadGraphicsContentCalled when the component needs to load graphics resources. Override this method to load any component-specific graphics resources.
Protected MethodMemberwiseClone (Inherited from Object.)
Protected MethodOnDrawOrderChangedCalled when the DrawOrder property changes. Raises the DrawOrderChanged event.
Protected MethodOnEnabledChanged (Inherited from GameComponent.)
Protected MethodOnUpdateOrderChanged (Inherited from GameComponent.)
Protected MethodOnVisibleChangedCalled when the Visible property changes. Raises the VisibleChanged event.
Protected MethodUnloadGraphicsContentCalled when graphics resources should be unloaded. Override this method to handle component-specific graphics resources.

Public EventDisposed (Inherited from GameComponent.)
Public EventDrawOrderChangedRaised when the DrawOrder property changes.
Public EventEnabledChanged (Inherited from GameComponent.)
Public EventUpdateOrderChanged (Inherited from GameComponent.)
Public EventVisibleChangedRaised when the Visible property changes.