A small game engine for 2D games based of Raylib
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
namespace ant::render {
|
|
enum class layer_pos {
|
|
start,
|
|
any,
|
|
end
|
|
};
|
|
void schedule_in_frame(float layer, std::function<void()> fn, layer_pos pos = layer_pos::any);
|
|
void schedule_in_frame(float layer, auto fn, layer_pos pos = layer_pos::any) {
|
|
schedule_in_frame(layer, std::function<void()>{std::move(fn)}, pos);
|
|
}
|
|
void render_all();
|
|
}
|