14 #if defined IGRAPHICS_IMGUI 16 #include "IGraphicsStructs.h" 19 BEGIN_IGRAPHICS_NAMESPACE
26 ImGuiRenderer(
IGraphics* pGraphics, std::function<
void(
IGraphics*)> drawFunc, std::function<
void()> setupFunc);
41 bool OnMouseDown(
float x,
float y,
const IMouseMod &mod);
42 bool OnMouseUp(
float x,
float y,
const IMouseMod &mod);
43 bool OnMouseWheel(
float x,
float y,
const IMouseMod &mod,
float delta);
44 void OnMouseMove(
float x,
float y,
const IMouseMod &mod);
45 bool OnKeyDown(
float x,
float y,
const IKeyPress &key);
46 bool OnKeyUp(
float x,
float y,
const IKeyPress &key);
48 std::function<void(IGraphics*)> GetDrawFunc()
58 ImGuiContext* mCtx =
nullptr;
60 std::function<void(IGraphics*)> mDrawFunc =
nullptr;
64 END_IGRAPHICS_NAMESPACE
Used to manage mouse modifiers i.e.
The lowest level base class of an IGraphics context.
Used for key press info, such as ASCII representation, virtual key (mapped to win32 codes) and modifi...