aboutsummaryrefslogtreecommitdiff
path: root/GdiRadar/GdiRadar.h
diff options
context:
space:
mode:
Diffstat (limited to 'GdiRadar/GdiRadar.h')
-rw-r--r--GdiRadar/GdiRadar.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/GdiRadar/GdiRadar.h b/GdiRadar/GdiRadar.h
index 8081aba..b8d73f6 100644
--- a/GdiRadar/GdiRadar.h
+++ b/GdiRadar/GdiRadar.h
@@ -7,13 +7,17 @@
struct gdi_radar_config {
LPCWSTR className;
LPCWSTR windowName;
- clock_t minimumUpdateTime;
+ double minimumUpdateTime;
size_t reservedEntities;
};
struct gdi_radar_context;
+static HINSTANCE gdi_radar_get_fake_hinstance()
+{
+ return (HINSTANCE)GetWindowLongW(GetActiveWindow(), -6);
+}
struct gdi_radar_context * const
gdi_radar_configure(struct gdi_radar_config const * const cfg,
HINSTANCE hInst);
@@ -35,5 +39,13 @@ struct entity {
void gdi_radar_add_entity(struct gdi_radar_context * const ctx,
struct entity const * const ent);
void gdi_radar_clear_entities(struct gdi_radar_context * const ctx);
+void gdi_radar_set_game_dimensions(struct gdi_radar_context * const ctx,
+ UINT64 GameMapWidth, UINT64 GameMapHeight);
+static void gdi_radar_set_game_dimensions(struct gdi_radar_context * const ctx,
+ float GameMapWidth, float GameMapHeight)
+{
+ gdi_radar_set_game_dimensions(ctx,
+ (UINT64)GameMapWidth, (UINT64)GameMapHeight);
+}
void gdi_radar_process_window_events_blocking(struct gdi_radar_context * const ctx);
void gdi_radar_process_window_events_nonblocking(struct gdi_radar_context * const ctx); \ No newline at end of file