ImGui Crosshair?

2 Antworten

Der Entwickler selbst empfiehlt hierfür, den Cursor von ImGui zu deaktivieren und stattdessen eine eigene Form zu zeichnen, die bspw. ein Bild benutzt.

You can just set the cursor to ImGuiMouseCursor_None and then draw your own shape using the ImGui::GetForegroundDrawList()->AddXXX calls, either using geometry either using an image which you can load yourself (see  https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-how-can-i-display-an-image-what-is-imtextureid-how-does-it-work and  https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples)

Quelle

Mach das doch direkt über d3d

Woher ich das weiß:Hobby – Programmiere seid 6 Jahren Modifikationen für Spiele