SamuelTulach / OverlayCord

Simple proof of concept showing how you can abuse Discord's in-game internal module to draw on top of the game (even if the game is in fullscreen) from an external application without modifying any Discord files or loading its modules.
135 stars 36 forks source link

ImGui example code clarifications #2

Open cashcache opened 4 months ago

cashcache commented 4 months ago

Nice work on this project. I'm pretty new to DirectX and need a bit of help. Your ImGui example code is helpful, but there are some missing pieces that I cannot figure out.

CreateDeviceD3D() is incomplete, but it looks like all that's left to do is actually create the device and assign to a global variable.

SendBuffer() is where I'm having issues. When copying data from one buffer to the other, you have:

memcpy(mainHeader->ActualBuffer, mappedResource.pData, bufferSize);

mainHeader is not defined anywhere and I'm not sure what this object is. Also, at what point would the call be made to SendBuffer()? Would this be in place of the SendFrame()?

I'm trying to modify your code to get a simple ImGui::ShowDemoWindow() to display. Any help is greatly appreciated.

Snake18203 commented 1 month ago

The same , did you manage to create a menu with ImGui ?