for we start the DirectX, we must create the Device.
have to do with DirectX initialization. but can we get the actual Window DirectX?
(imagine if the DirectX variables initialization aren't global, for exemple... how can we get the device?)
for we start the DirectX, we must create the Device.
have to do with DirectX initialization. but can we get the actual Window DirectX?
(imagine if the DirectX variables initialization aren't global, for exemple... how can we get the device?)
Your question is not entirely clear, but if you want the HWND from the CreateDevice call, try this:
IDirect3D9 interfaceCode:// global IDirect3DDevice9* d3dDevice = NULL; // wherever (after d3dDevice is initialized) D3DDEVICE_CREATION_PARAMETERS Parameters; d3dDevice->GetCreationParameters(&Parameters); HWND hwnd = Parameters.hFocusWindow;
A little inaccuracy saves tons of explanation. - H.H. Munro
ok.. nice. but imagine if i need get the device, how can i do it?
PS: i'm getting problems: why i didn't get the mail notification?