14#include <lagrange/ui/Entity.h>
15#include <lagrange/utils/strings.h>
17#include <unordered_set>
26 operator const std::string&()
const {
return value; }
42inline std::string get_name(
const Registry& r, Entity e)
46 if (!r.all_of<
Name>(e))
48 return r.get<
Name>(e);
51inline bool set_name(Registry& r, Entity e,
const std::string& name)
53 if (!r.valid(e))
return false;
54 r.emplace_or_replace<Name>(e, name);
58inline const GlobalTime& get_time(
const Registry& r)
60 return r.ctx().get<GlobalTime>();
std::string string_format(fmt::format_string< Args... > format, Args &&... args)
Format args according to the format string fmt, and return the result as a string.
Definition: strings.h:103
Lagrange UI Viewer and mini 3D engine.
Definition: AcceleratedPicking.h:22
Main namespace for Lagrange.
Definition: AABBIGL.h:30
double dt
Time from last frame in seconds.
Definition: Common.h:36
double t
Time from start in seconds.
Definition: Common.h:34