Beispiel #1
0
void
dx9_d3d_init (DirectXAPIComponent * component, gpointer data)
{
  DIRECTX_DEBUG ("Initializing Direct3D");
  DIRECTX_OPEN_COMPONENT_MODULE (component, "d3d9");

  DIRECTX_DEBUG ("Setting Direct3D dispatch table");
  DIRECTX_OPEN_COMPONENT_SYMBOL (component, D3D9DispatchTable, Direct3DCreate9);

  //{
  //  IDirect3D9* blah;
  //  DIRECTX_DEBUG("CALLING CREATE9!");
  //  //blah = DX9_CALL_FUNC(data, Direct3DCreate9, D3D_SDK_VERSION);
  //  blah = DX9_D3D_COMPONENT_CALL_FUNC(component, Direct3DCreate9, D3D_SDK_VERSION);
  //  DIRECTX_DEBUG("RELEASING CREATE9!");
  //  IDirect3D9_Release(blah);
  //  DIRECTX_DEBUG("RELEASED CREATE9!");
  //}
}
Beispiel #2
0
void
dx11_d3d_init (DirectXAPIComponent * component, gpointer data)
{
  DIRECTX_DEBUG ("Initializing Direct3D");
  DIRECTX_OPEN_COMPONENT_MODULE (component, "d3d11");
  DIRECTX_DEBUG ("Completed Initializing Direct3D");

  DIRECTX_DEBUG ("Setting Direct3D dispatch table");
  //DIRECTX_OPEN_COMPONENT_SYMBOL(component, D3D11DispatchTable, D3D11CreateDevice);

  //{
  //  ID3D11Device* pDevice = NULL;
  //  DIRECTX_DEBUG("Calling D3D11CreateDevice");
  //  DX11_D3D_COMPONENT_CALL_FUNC(component, D3D11CreateDevice, NULL, D3D11_DRIVER_TYPE_HARDWARE, NULL, 0, D3D11_SDK_VERSION, &pDevice);
  //  DIRECTX_DEBUG("Releasing D3D11 device");
  //  ID3D11Device_Release(pDevice);
  //  DIRECTX_DEBUG("Released D3D11 device");
  //}
}