Device Members
The parent object of all graphical objects in the scene.
The following tables list the members exposed by the Device type.
Public Constructors
Name | Description | |
---|---|---|
Device | Overloaded. Initializes a new instance of the Device structure. |
Top
Public Properties
Name | Description | |
---|---|---|
ClipStatus | Gets or sets a ClipStatus structure. | |
CreationParameters | Gets the creation parameters of the device. | |
CurrentTexturePalette | Gets or sets the current texture palette. | |
DepthStencilSurface | Gets or sets the depth stencil surface owned by the Device structure. | |
DeviceCaps | Gets the capabilities of the rendering device. | |
DisplayMode | Gets the display mode's spatial resolution, color resolution, and refresh frequency. | |
Indices | Gets or sets index data. | |
IsUsingEventHandlers | Gets or sets a value indicating whether the device should use event handlers. | |
Lights | Gets the light collection on the current device. | |
LightsFixed | Gets the light collection on the current device. | |
Material | Gets or sets the current material properties for the device. | |
MaterialFixed | Gets or sets the current material properties for the device. | |
PresentationParameters | Gets presentation parameters for a device. | |
RenderState | Gets a render-state value for a device. | |
TextureState | Gets a state value for an assigned texture. | |
Transform | Gets a matrix that describes a transformation state. | |
Viewport | Gets or sets the viewport parameters for the current device. |
Top
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
BeginScene | Represents the beginning of a scene. | |
CheckCooperativeLevel | Overloaded. Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application. | |
Clear | Overloaded. Clears the viewport or a set of rectangles in the viewport to a specified RGBA color, clears the depth buffer, and erases the stencil buffer. | |
ColorFill | Allows an application to fill a rectangular area with a specified color. | |
CopyRects | Overloaded. Copies one or more Rectangle objects to a Surface at a specified point. | |
CreateDepthStencilSurface | Creates a depth stencil resource. | |
CreateImageSurface | Creates a Surface. | |
CreateRenderTarget | Creates a render target surface. | |
Dispose | Releases all resources used by the Device. This class cannot be inherited. | |
DrawIndexedPrimitives | Renders the specified geometric primitive, based on indexing into an array of vertices. | |
DrawPrimitives | Renders a sequence of non-indexed geometric primitives of the specified type from the current set of data input streams. | |
EndScene | Ends a scene that was started by calling the BeginScene method. | |
Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) | |
GetAvailablePoolMem | Gets the available memory for a Pool enumeration. | |
GetBackBuffer | Gets the specified back buffer. | |
GetFrontBuffer | Generates a copy of a device's front buffer and places it in a system memory buffer provided by the application. | |
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.) | |
GetInfo | Gets driver information about a device. | |
GetPaletteEntries | Retrieves palette entries. | |
GetStreamSource | Gets a vertex buffer bound to the specified data stream. | |
GetTexture | Gets a texture assigned to a stage for a device. | |
GetTransform | Gets a matrix that describes a transformation state. | |
GetTransformFixed | Gets a matrix that describes a transformation state for operations that use fixed-point math. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Present | Overloaded. Presents the display with the contents of the next buffer in the sequence of back buffers owned by the device. | |
ProcessVertices | Applies the vertex processing defined by the vertex shader to the set of input data streams, generating a single stream of interleaved vertex data to the destination vertex buffer. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) | |
Reset | Resets the presentation parameters for the current device. | |
ResourceManagerDiscardBytes | Instructs the driver to discard bytes of memory from the video pool. | |
SetPaletteEntries | Sets the palette entries. | |
SetRenderTarget | Sets a new color buffer for a device. | |
SetStreamSource | Binds a vertex buffer to a device data stream. | |
SetTexture | Assigns a texture to a device stage. | |
SetTransform | The type of transform that is being modified. | |
SetTransformFixed | The type of transform that is being modified, for fixed-point math operations. | |
StretchRectangle | Copies the contents of the source rectangle to the destination rectangle. | |
TestCooperativeLevel | Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application. | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) | |
UpdateTexture | Updates the dirty portions of a texture. | |
ValidateDevice | Reports the device's ability to render the current texture-blending operations and arguments in a single pass. |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | Overridden. Allows the Device structure to free resources before it is destroyed by the garbage collector. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Top
Public Events
Name | Description | |
---|---|---|
DeviceLost | Occurs when a device is about to be lost, such as immediately prior to a reset. | |
DeviceReset | Occurs after a device is reset. | |
DeviceResizing | Occurs when a device is resizing, allowing the application to cancel the default handling of the resize. | |
Disposing | Occurs when the Dispose method is called or when the device object is finalized and collected by the garbage collector. |
Top
See Also
Reference
Device Class
Microsoft.WindowsMobile.DirectX.Direct3D Namespace