For now, we focus on internal overlays for bemanitools that hook into an existing d3d9 context. The current abstraction is fairly thin and should be fine as a start. Implementations are called “components” and hook up with a single frame_update function to execute and logic and drawing updates with imgui
13 lines
280 B
C
13 lines
280 B
C
#ifndef IMGUI_BT_COMPONENT_H
|
|
#define IMGUI_BT_COMPONENT_H
|
|
|
|
#include "imgui-bt/cimgui.h"
|
|
|
|
typedef void (*imgui_bt_component_frame_update_t)(ImGuiContext *ctx);
|
|
|
|
typedef struct imgui_bt_component {
|
|
imgui_bt_component_frame_update_t frame_update;
|
|
} imgui_bt_component_t;
|
|
|
|
#endif
|