Compartir a través de


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
Public method Supported by the .NET Compact Framework Sprite Initializes a new instance of the Sprite class.

Top

Public Properties

  Name Description
Public property Supported by the .NET Compact Framework Device Retrieves the Direct3D device associated with a Sprite.
Public property Supported by the .NET Compact Framework Transform Retrieves or sets a Matrix.

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method Supported by the .NET Compact Framework Begin Prepares a device for drawing sprites.
Public method Supported by the .NET Compact Framework Dispose Releases all resources used by the Sprite.
Public method Supported by the .NET Compact Framework Draw Overloaded. Adds a sprite to the list of batched sprites.
Public method Supported by the .NET Compact Framework End Restores the device to the state it was in before Begin was called.
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework Flush Forces all batched sprites to be submitted to the device.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Supported by the .NET Compact Framework OnLostDevice Releases all references to video memory resources and deletes all state blocks.
Public method Supported by the .NET Compact Framework OnResetDevice Called internally when the device enters a lost state.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework SetWorldViewLH Sets the left-handed world-view transform for a sprite.
Public method Supported by the .NET Compact Framework SetWorldViewRH Sets the right-handed world-view transform for a sprite.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (inherited from Object)

Top

Protected Methods

  Name Description
Protected method Supported by the .NET Compact Framework 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)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)

Top

Public Events

  Name Description
Public event Supported by the .NET Compact Framework 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

Other Resources

Direct3D Programming
How to: Use Sprites