Closed Lioncky closed 2 years ago
This image shows the prob i mentioned last post.
Microsoft DirectX 8.1B Complete SDK, if you should debug, download this you will feel a little different to dx9sdk
Add Environment Variable $(DXSDK_81) C:\Program Files (x86)\Microsoft DirectX 8.1 SDK\ Microsoft DirectX 8.1 SDK.rar 3 button all can download.
d3d8 wndproc need add
case WM_PAINT: //Render(); ? ValidateRect(hWnd, NULL); return 0;
Other trouble were found, no solution yet.
OutofRange The help maker is the multi window as well.
Hello,
Hopefully you’ll get it solved soon. If you get a working DX8 backend please host it in a github repo (as eg: imgui_impl_dx8.cpp) and we’re link to it.
However please be mindful this place is not a chat room, please refrain from posting too often as your messages are landing in people inbox.
cheers
Here backends with source, have uploaded yesterday. example_win32_directx8.zip
I won't reply till i solve this. cheers.
Closing this. When backend is done you can host on github and we'll happily link to it from Backends and Wiki pages. Thank you!
Other trouble were found, no solution yet.
you can fix it by creating the state block of directx8 and then capturing/aplying and deleting it.
bd->pd3dDevice->CaptureStateBlock(d3d8_state_block); if (bd->pd3dDevice->CaptureStateBlock(d3d8_state_block) < 0) { bd->pd3dDevice->DeleteStateBlock(d3d8_state_block); return; }
and at the end of ImGui_ImplDX8_RenderDrawData
bd->pd3dDevice->ApplyStateBlock(d3d8_state_block); bd->pd3dDevice->DeleteStateBlock(d3d8_state_block);
I tried to make dx8 backend for imgui,and half done. Not sure why render crash while 2 window exist at the same time. Here is my code and the image.
Maybe here can be replace but i am not sure. example_win32_directx8.zip Microsoft DirectX 8.1 SDK Lite.zip