Partager via


Device Members

Include Protected Members
Include Inherited Members

Include .NET Framework Members

Include .NET Compact Framework Members
Include XNA Framework Members

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The parent object of all graphical objects in the scene.

The Device type exposes the following members.

Constructors

  Name Description
Public methodSupported by the .NET Compact Framework Device Overloaded. Initializes a new instance of the Device structure.

Top

Methods

  Name Description
Public methodSupported by the .NET Compact Framework BeginScene Represents the beginning of a scene.
Public methodSupported by the .NET Compact Framework CheckCooperativeLevel Overloaded. Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
Public methodSupported by the .NET Compact Framework 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.
Public methodSupported by the .NET Compact Framework ColorFill Allows an application to fill a rectangular area with a specified color.
Public methodSupported by the .NET Compact Framework CopyRects Overloaded. Copies one or more Rectangle objects to a Surface at a specified point.
Public methodSupported by the .NET Compact Framework CreateDepthStencilSurface Creates a depth stencil resource.
Public methodSupported by the .NET Compact Framework CreateImageSurface Creates a Surface.
Public methodSupported by the .NET Compact Framework CreateRenderTarget Creates a render target surface.
Public methodSupported by the .NET Compact Framework Dispose Releases all resources used by the Device. This class cannot be inherited.
Public methodSupported by the .NET Compact Framework DrawIndexedPrimitives Renders the specified geometric primitive, based on indexing into an array of vertices.
Public methodSupported by the .NET Compact Framework DrawPrimitives Renders a sequence of non-indexed geometric primitives of the specified type from the current set of data input streams.
Public methodSupported by the .NET Compact Framework EndScene Ends a scene that was started by calling the BeginScene method.
Public methodSupported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact Framework Finalize Allows the Device structure to free resources before it is destroyed by the garbage collector. (Overrides Object.Finalize().)
Public methodSupported by the .NET Compact Framework GetAvailablePoolMem Gets the available memory for a Pool enumeration.
Public methodSupported by the .NET Compact Framework GetBackBuffer Gets the specified back buffer.
Public methodSupported by the .NET Compact Framework GetFrontBuffer Generates a copy of a device's front buffer and places it in a system memory buffer provided by the application.
Public methodSupported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by the .NET Compact Framework GetInfo Gets driver information about a device.
Public methodSupported by the .NET Compact Framework GetPaletteEntries Retrieves palette entries.
Public methodSupported by the .NET Compact Framework GetStreamSource Gets a vertex buffer bound to the specified data stream.
Public methodSupported by the .NET Compact Framework GetTexture Gets a texture assigned to a stage for a device.
Public methodSupported by the .NET Compact Framework GetTransform Gets a matrix that describes a transformation state.
Public methodSupported by the .NET Compact Framework GetTransformFixed Gets a matrix that describes a transformation state for operations that use fixed-point math.
Public methodSupported by the .NET Compact Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by the .NET Compact Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the .NET Compact Framework Present Overloaded. Presents the display with the contents of the next buffer in the sequence of back buffers owned by the device.
Public methodSupported by the .NET Compact Framework ProcessVertices Applies the vertex processing defined by the vertex shader to the set of input data streams, and generates a single stream of interleaved vertex data to the destination vertex buffer.
Public methodSupported by the .NET Compact Framework Reset Resets the presentation parameters for the current device.
Public methodSupported by the .NET Compact Framework ResourceManagerDiscardBytes Instructs the driver to discard bytes of memory from the video pool.
Public methodSupported by the .NET Compact Framework SetPaletteEntries Sets the palette entries.
Public methodSupported by the .NET Compact Framework SetRenderTarget Sets a new color buffer for a device.
Public methodSupported by the .NET Compact Framework SetStreamSource Binds a vertex buffer to a device data stream.
Public methodSupported by the .NET Compact Framework SetTexture Assigns a texture to a device stage.
Public methodSupported by the .NET Compact Framework SetTransform The type of transform that is being modified.
Public methodSupported by the .NET Compact Framework SetTransformFixed The type of transform that is being modified, for fixed-point math operations.
Public methodSupported by the .NET Compact Framework StretchRectangle Copies the contents of the source rectangle to the destination rectangle.
Public methodSupported by the .NET Compact Framework TestCooperativeLevel Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
Public methodSupported by the .NET Compact Framework ToString Returns a String that represents the current Object. (Inherited from Object.)
Public methodSupported by the .NET Compact Framework UpdateTexture Updates the dirty portions of a texture.
Public methodSupported by the .NET Compact Framework ValidateDevice Reports the device's ability to render the current texture-blending operations and arguments in a single pass.

Top

Properties

  Name Description
Public propertySupported by the .NET Compact Framework ClipStatus Gets or sets a ClipStatus structure.
Public propertySupported by the .NET Compact Framework CreationParameters Gets the creation parameters of the device.
Public propertySupported by the .NET Compact Framework CurrentTexturePalette Gets or sets the current texture palette.
Public propertySupported by the .NET Compact Framework DepthStencilSurface Gets or sets the depth stencil surface owned by the Device structure.
Public propertySupported by the .NET Compact Framework DeviceCaps Gets the capabilities of the rendering device.
Public propertySupported by the .NET Compact Framework DisplayMode Gets the display mode's spatial resolution, color resolution, and refresh frequency.
Public propertySupported by the .NET Compact Framework Indices Gets or sets index data.
Public propertyStatic memberSupported by the .NET Compact Framework IsUsingEventHandlers Gets or sets a value indicating whether the device should use event handlers.
Public propertySupported by the .NET Compact Framework Lights Gets the light collection on the current device.
Public propertySupported by the .NET Compact Framework LightsFixed Gets the light collection on the current device, using fixed-point math.
Public propertySupported by the .NET Compact Framework Material Gets or sets the current material properties for the device.
Public propertySupported by the .NET Compact Framework MaterialFixed Gets or sets the current material properties for the device, using fixed-point math.
Public propertySupported by the .NET Compact Framework PresentationParameters Gets presentation parameters for a device.
Public propertySupported by the .NET Compact Framework RenderState Gets a render-state value for a device.
Public propertySupported by the .NET Compact Framework TextureState Gets a state value for an assigned texture.
Public propertySupported by the .NET Compact Framework Transform Gets a matrix that describes a transformation state.
Public propertySupported by the .NET Compact Framework Viewport Gets or sets the viewport parameters for the current device.

Top

Events

  Name Description
Public eventSupported by the .NET Compact Framework DeviceLost Occurs when a device is about to be lost, such as immediately prior to a reset.
Public eventSupported by the .NET Compact Framework DeviceReset Occurs after a device is reset.
Public eventSupported by the .NET Compact Framework DeviceResizing Occurs when a device is resizing, allowing the application to cancel the default handling of the resize.
Public eventSupported by the .NET Compact Framework 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