Solved hooking dx9 and drawing imgui menu

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

rocketchroma

Newbie
Full Member
Feb 24, 2017
5
188
0
Imgui: https://github.com/ocornut/imgui

So I want to draw an imgui menu (perhaps just the text one provided in their github) in a direct x 9 game (league of legends)

I understand that I should use the game's d3d device to render the menu, but i'm not even sure where to begin

I'll appreciate any information to point me in the right direction, thanks
 

GAFO666

Hacker
Meme Tier VIP
Aug 19, 2012
520
3,188
23
Basicly you need to hook Endscene & Reset of dx9 and ProcessMesages of windows (or something which provides the input).
- ImGui_ImplDX9_WndProcHandler goes into WndProc Hook
- ImGui_ImplDX9_InvalidateDeviceObjects goes in Pre-Reset (before rest is called within reset hook)
- ImGui_ImplDX9_CreateDeviceObjects goes in Post-Rest
- ImGui_ImplDX9_NewFrame goes into endscene
- ImGui_ImplDX9_Init goes goes also into endscene but only called once

(Casing you do it internal)
 
  • Like
Reactions: Rake

Oneshot

Meme Tier VIP
Apr 4, 2015
232
190
13
Basicly you need to hook Endscene & Reset of dx9 and ProcessMesages of windows (or something which provides the input).
- ImGui_ImplDX9_WndProcHandler goes into WndProc Hook
- ImGui_ImplDX9_InvalidateDeviceObjects goes in Pre-Reset (before rest is called within reset hook)
- ImGui_ImplDX9_CreateDeviceObjects goes in Post-Rest
- ImGui_ImplDX9_NewFrame goes into endscene
- ImGui_ImplDX9_Init goes goes also into endscene but only called once

(Casing you do it internal)
Epic info. :biblethump:
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods