Immediate-Mode-UI / Immediate-Mode-UI/Nuklear
D3D9 Hook in EndScene
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 11.4k
- Forks
- 686
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 3
Description
Can anyone point me in the direction of how to successfully implement Nuklear in an EndScene hook for D3D9?
I am wanting to switch from Imgui which I have working successfully but there seems to be far less resources on how to implement Nuklear in a hook (especially D3D9).
I have used the d3d9 file in the demos and tried to extrapolate from the creation of a D3D9 device to using an existing one in a hook.
The test menu is showing but I have a red distorted background and I'm not sure if that's intentional or a bug with the hook. See below:

Thanks in advance.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the D3D9 file in the demos and compare its device setup with the existing-device EndScene hook described here. Investigate the red distorted background while the test menu is visible, using the attached image as the symptom reference. Done means Nuklear renders correctly in the hook without the distortion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100