Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

DrawableGameComponent Members

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

NameDescription
Public MethodDrawableGameComponentCreates a new instance of DrawableGameComponent.
NameDescription
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 PropertyGame (Inherited from GameComponent.)
Public PropertyGraphicsDeviceThe GraphicsDevice the DrawableGameComponent is associated with.
Public PropertyUpdateOrder (Inherited from GameComponent.)
Public PropertyVisibleIndicates whether Draw should be called.
NameDescription
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.)
NameDescription
Protected MethodLoadContentCalled when graphics resources need to be loaded. Override this method to load any component-specific graphics resources.
Protected MethodLoadGraphicsContentObsolete. Called 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 MethodUnloadContentCalled when graphics resources need to be unloaded. Override this method to unload any component-specific graphics resources.
Protected MethodUnloadGraphicsContentObsolete. Called when graphics resources should be unloaded. Override this method to handle component-specific graphics resources.
NameDescription
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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.