testbed: temp init function for test purposes
This commit is contained in:
@@ -63,10 +63,19 @@ application::~application() {
|
||||
SDL_Quit();
|
||||
}
|
||||
|
||||
static void static_setup_for_dev_purposes(entt::registry ®istry) {
|
||||
const auto entt = registry.create();
|
||||
|
||||
registry.emplace<double>(entt, 1.2);
|
||||
registry.emplace<int>(entt, 3);
|
||||
}
|
||||
|
||||
int application::run() {
|
||||
entt::registry registry{};
|
||||
context context{};
|
||||
|
||||
static_setup_for_dev_purposes(registry);
|
||||
|
||||
quit = false;
|
||||
|
||||
while(!quit) {
|
||||
|
||||
Reference in New Issue
Block a user