aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GdiRadarLib/GdiRadar.cpp2
-rw-r--r--GdiRadarLib/GdiRadar.h1
-rw-r--r--GdiRadarTest/GdiRadarMain.cpp14
-rw-r--r--README.md16
4 files changed, 24 insertions, 9 deletions
diff --git a/GdiRadarLib/GdiRadar.cpp b/GdiRadarLib/GdiRadar.cpp
index b62dfd2..6da3b0d 100644
--- a/GdiRadarLib/GdiRadar.cpp
+++ b/GdiRadarLib/GdiRadar.cpp
@@ -390,7 +390,7 @@ bool gdi_radar_redraw_if_necessary(struct gdi_radar_context * const ctx)
if (gdi_radar_is_redraw_necessary(ctx, &cpu_time_used)) {
if (cpu_time_used > ctx->minimumUpdateTime * ctx->maximumRedrawFails) {
- DBG("ERROR: Redraw failed for the last %llu times!\n",
+ DBG("ERROR: Redraw failed for the at least %llu times!\n",
ctx->maximumRedrawFails);
return false;
}
diff --git a/GdiRadarLib/GdiRadar.h b/GdiRadarLib/GdiRadar.h
index 21ae9ad..6b12fbc 100644
--- a/GdiRadarLib/GdiRadar.h
+++ b/GdiRadarLib/GdiRadar.h
@@ -36,7 +36,6 @@ struct entity {
int pos[2];
float angle;
int angle_line_length;
- float health;
enum entity_color color;
const char *name;
};
diff --git a/GdiRadarTest/GdiRadarMain.cpp b/GdiRadarTest/GdiRadarMain.cpp
index 4e04ae5..fbdd5c6 100644
--- a/GdiRadarTest/GdiRadarMain.cpp
+++ b/GdiRadarTest/GdiRadarMain.cpp
@@ -13,8 +13,8 @@ int main()
gdi_radar_config cfg = {};
gdi_radar_context * ctx;
- cfg.className = L"BlaTest";
- cfg.windowName = L"BlaTestWindow";
+ cfg.className = L"GdiRadarClass";
+ cfg.windowName = L"GdiRadarWindow";
cfg.minimumUpdateTime = 0.25f;
cfg.maximumRedrawFails = 5;
cfg.reservedEntities = 16;
@@ -33,15 +33,15 @@ int main()
std::cout << "Radar initialize failed\n";
}
- entity e1{ 0, 0, 0.0f, 0, 100.0f, entity_color::EC_RED, "test" };
+ entity e1{ 0, 0, 0.0f, 0, entity_color::EC_RED, "test" };
gdi_radar_add_entity(ctx, &e1);
- entity e2{ 1000, 1000, 0.0f, 0, 50.0f, entity_color::EC_RED, "m0wL" };
+ entity e2{ 1000, 1000, 0.0f, 0, entity_color::EC_RED, "whiteshirt" };
gdi_radar_add_entity(ctx, &e2);
- entity e3{ 500, 500, 0.0f, 60, 80.0f, entity_color::EC_RED, "whiteshirt" };
+ entity e3{ 500, 500, 0.0f, 60, entity_color::EC_BLUE, "localplayer" };
gdi_radar_add_entity(ctx, &e3);
- entity e4{ 50, 800, 0.0f, 0, 10.0f, entity_color::EC_RED, "lowlife" };
+ entity e4{ 50, 800, 0.0f, 0, entity_color::EC_RED, "lowlife" };
gdi_radar_add_entity(ctx, &e4);
- entity e5{ 250, 100, 0.0f, 0, 0.0f, entity_color::EC_BLACK, "dead" };
+ entity e5{ 250, 100, 0.0f, 0, entity_color::EC_BLACK, "dead" };
gdi_radar_add_entity(ctx, &e5);
#if 0
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e5c169d
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
+# What?
+
+A very simple **G**raphics **D**evice **I**nterface (short: **GDI**) based Radar.
+It can be used for internal and external game cheats.
+The API design follows the KISS principle.
+It should be usable within most game contexts with a minimal performance impact.
+
+# TODO
+
+There is still some room for performance improvements.
+It is not required to redraw the full screen as it is done at the moment.
+Only redraw rectangles that changed instead.
+
+# hf
+
+`Cheers!` \ No newline at end of file