[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DXGI.Factory1

Class Factory1

Namespace
GrapeCity.Documents.DX.DXGI
Assembly
GcDocs.DX.Windows.dll

IDXGIFactory1

[Guid("770aae78-f26f-4dba-a829-253c83d1b387")]
public class Factory1 : Factory, IDisposable, IUnknown
Inheritance
object
Factory1
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

Factory1(IntPtr)

Initializes a new instance of the Factory1 class.

public Factory1(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Adapters1

Return an array of Adapter1 available from this factory.

public Adapter1[] Adapters1 { get; }

Property Value

Adapter1[]

Methods

Create()

Creates an Factory1 object.

public static Factory1 Create()

Returns

Factory1

GetAdapter1(int, out Adapter1)

HRESULT IDXGIFactory1::EnumAdapters1([In] unsigned int Adapter,[Out] IDXGIAdapter1** ppAdapter)

public HResult GetAdapter1(int adapter, out Adapter1 adapterOut)

Parameters

adapter int
adapterOut Adapter1

Returns

HResult

GetAdapter1(int)

Gets both adapters (video cards) with or without outputs.

public Adapter1 GetAdapter1(int index)

Parameters

index int

The index of the adapter to enumerate.

Returns

Adapter1

a reference to an Adapter1 interface at the position specified by the Adapter parameter

Remarks

This method is not supported by DXGI 1.0, which shipped in Windows?Vista and Windows Server?2008. DXGI 1.1 support is required, which is available on Windows?7, Windows Server?2008?R2, and as an update to Windows?Vista with Service Pack?2 (SP2) (KB 971644) and Windows Server?2008 (KB 971512).When you create a factory, the factory enumerates the set of adapters that are available in the system. Therefore, if you change the adapters in a system, you must destroy and recreate the Factory1 object. The number of adapters in a system changes when you add or remove a display card, or dock or undock a laptop.When the EnumAdapters1 method succeeds and fills the ppAdapter parameter with the address of the reference to the adapter interface, EnumAdapters1 increments the adapter interface's reference count. When you finish using the adapter interface, call the Release method to decrement the reference count before you destroy the reference.EnumAdapters1 first returns the local adapter with the output on which the desktop primary is displayed. This adapter corresponds with an index of zero. EnumAdapters1 next returns other adapters with outputs. EnumAdapters1 finally returns adapters without outputs.

GetAdapterCount1()

Return the number of available adapters from this factory.

public int GetAdapterCount1()

Returns

int

The number of adapters

IsCurrent()

BOOL IDXGIFactory1::IsCurrent()

public bool IsCurrent()

Returns

bool

Operators

explicit operator Factory1(IntPtr)

Performs an explicit conversion from System.IntPtr to Factory1.

public static explicit operator Factory1(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

Factory1