SHARE
TWEET

Disable Alt-Enter

a guest Mar 7th, 2010 782 Never
  1. HR(D3D10CreateDevice(
  2.         0,                 //default adapter
  3.         md3dDriverType,
  4.         0,                 // no software device
  5.         createDeviceFlags,
  6.         D3D10_SDK_VERSION,
  7.         &md3dDevice) );
  8.  
  9. IDXGIDevice * pDXGIDevice;
  10. HR( md3dDevice->QueryInterface(__uuidof(IDXGIDevice), (void **)&pDXGIDevice) );
  11.  
  12. IDXGIAdapter * pDXGIAdapter;
  13. HR( pDXGIDevice->GetParent(__uuidof(IDXGIAdapter), (void **)&pDXGIAdapter) );
  14.  
  15. IDXGIFactory * pIDXGIFactory;
  16. pDXGIAdapter->GetParent(__uuidof(IDXGIFactory), (void **)&pIDXGIFactory);
  17.  
  18. HR(pIDXGIFactory->CreateSwapChain(md3dDevice, &sd, &mSwapChain));
  19. pIDXGIFactory->MakeWindowAssociation(mhMainWnd, DXGI_MWA_NO_ALT_ENTER);
RAW Paste Data
Top