void on_load() {
runtime::log(resources::text("greeting.txt"));
}
void on_event(const string &in name) {
runtime::log(name);
}
void on_timer(uint tick) {
runtime::log("timer tick");
}
void on_frame() {
render::text(24, 24, "Easy Universal 0.1", 0xff9955ff);
render::circle(demo::x(), demo::y(), 18, 0xff9955ff);
render::line(24, screen::height() - 24, screen::width() - 24,
screen::height() - 24, 0x4b5057ff, 2);
ui::label("Own application snapshot; no game process access.");
}
void on_unload() {
runtime::log("unloaded");
}
Easy Universal / Примеры и шаблоны