C language function:D3D10CreateDeviceAndSwapChain sample codes

Search sample code in the internet.It is the result.


TITLE : Understanding Direct3D 10 Application Code – CodeProject | AisNote-䈎z.
Since all our rendering is done with a Direct3D device, the first thing we need to do is construct a device. This also involves constructing a swap chain, consisting of a back buffer and primary surface. Doing this requires us to fill out a structure called DXGI_SWAP_CHAIN_DESC and then call the D3D10CreateDeviceAndSwapChain() function. These structures will be discussed after our first example........
http://aisnote.com/2011/01/05/understanding-direct3d-10-application-code-codeproject/


search Google

https://www.google.com/#q=D3D10CreateDeviceAndSwapChain