Sprite Members
Provides methods and properties that simplify the process of drawing sprites using Direct3D.
The following tables list the members exposed by the Sprite type.
Public Constructors
Name | Description | |
---|---|---|
Sprite | Initializes a new instance of the Sprite class. |
Top
Public Properties
Name | Description | |
---|---|---|
Device | Retrieves the Direct3D device associated with a Sprite. | |
Transform | Retrieves or sets a Matrix. |
Top
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
Begin | Prepares a device for drawing sprites. | |
Dispose | Releases all resources used by the Sprite. | |
Draw | Overloaded. Adds a sprite to the list of batched sprites. | |
End | Restores the device to the state it was in before Begin was called. | |
Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) | |
Flush | Forces all batched sprites to be submitted to the device. | |
GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
OnLostDevice | Releases all references to video memory resources and deletes all state blocks. | |
OnResetDevice | Called internally when the device enters a lost state. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) | |
SetWorldViewLH | Sets the left-handed world-view transform for a sprite. | |
SetWorldViewRH | Sets the right-handed world-view transform for a sprite. | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Top
Public Events
Name | Description | |
---|---|---|
Disposing | Occurs when the Dispose method is called or when the Sprite object is finalized and collected by the garbage collector. |
Top
See Also
Reference
Sprite Class
Microsoft.WindowsMobile.DirectX.Direct3D Namespace