1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#include "pch.h"
#include "GdiRadar.h"
#include <iostream>
#include <vector>
#include <Windows.h>
#include <time.h>
int main()
{
gdi_radar_config cfg;
gdi_radar_context * ctx;
cfg.className = L"BlaTest";
cfg.windowName = L"BlaTestWindow";
cfg.minimumUpdateTime = 0.25f;
cfg.reservedEntities = 16;
std::cout << "Init\n";
ctx = gdi_radar_configure(&cfg, gdi_radar_get_fake_hinstance());
if (!ctx)
{
std::cout << "Radar configure failed!\n";
}
gdi_radar_set_game_dimensions(ctx, 1000.0f, 1000.0f);
if (!gdi_radar_init(ctx))
{
std::cout << "Radar initialize failed\n";
}
entity e1{ 0.0f, 0.0f, 100.0f, entity_color::EC_RED, "test" };
gdi_radar_add_entity(ctx, &e1);
entity e2{ 1000.0f, 1000.0f, 50.0f, entity_color::EC_RED, "m0wL" };
gdi_radar_add_entity(ctx, &e2);
entity e3{ 500.0f, 500.0f, 80.0f, entity_color::EC_RED, "whiteshirt" };
gdi_radar_add_entity(ctx, &e3);
gdi_radar_process_window_events_blocking(ctx);
return 0;
}
|