blob: 600adc104c76b5f55b9d974b82f3b4439b80365f (
plain)
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
|
#pragma once
#include <functional>
#include <string>
#include <entt/entity/handle.hpp>
#include <raylib.h>
#include <kurator/engine/Point.h>
#include <kurator/sim/State.h>
namespace kurator
{
struct Marker
{
engine::Point screen;
double radius;
Color color;
std::string name;
bool hovered = false;
};
void attach_markers(sim::State& ctx);
void update_markers(sim::State& ctx, std::function<void(entt::handle)> select);
void draw_markers(const sim::State& ctx);
} // namespace kurator
|