Click or drag to resize
D3D11Control Class
D3D11-aware WinForms control. The WinForms designer will always call the default constructor. Inherit from this class and call one of its specialized constructors to create a Direct3D11 device or swapchain with custom properties.
Inheritance Hierarchy

Namespace: SlimDX.Windows
Assembly: SlimDX.D3D11Control (in SlimDX.D3D11Control.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class D3D11Control : UserControl

The D3D11Control type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAspectRatio
Gets the aspect ratio of this D3D11Control instance.
Public propertyAutoAdjustViewPort
Indicates whether the viewport will automatically size itself when the control is resized.
Public propertyContext
Gets the DeviceContext instance which generates rendering commands.
Public propertyCullMode
Gets or sets which triangles are to be culled.
Public propertyDepthStencilView
Gets the DepthStencilView instance associated with the output merger.
Public propertyDevice
Gets the virtual adapter used to perform rendering and create resources.
Public propertyFillMode
Gets or sets the fill mode to use when rendering.
Public propertyFrontCounterClockwise
Determines if a triangle is front- or back-facing.
Public propertyRenderTargetView
Gets the RenderTargetView instance associated with the output merger.
Public propertySwapChain
Gets the SwapChain instance associated with the device.
Public propertyVSync
Gets or sets a value indicating whether vertical synchronization (vsync) is active.
Top
Methods
  NameDescription
Public methodClear
Clears the back buffer and optionally the depth- and stencil buffers.
Public methodPresent
Swaps the front and back buffers, presenting the rendered scene to the screen.
Public methodResizeViewport
Resizes the viewport to the specified dimensions.
Top
Events
  NameDescription
Public eventAspectRatioChanged
Occurs when the aspect ratio of the viewport has changed.
Top
See Also