remove entry_point header

This commit is contained in:
scawful
2022-07-06 19:17:26 -04:00
parent 2e79b8d5e3
commit dce7434c51
3 changed files with 13 additions and 20 deletions

View File

@@ -1,18 +0,0 @@
#ifndef YAZE_APP_CONTROLLER_ENTRYPOINT_H
#define YAZE_APP_CONTROLLER_ENTRYPOINT_H
#include "controller.h"
int main(int argc, char** argv) {
yaze::app::core::Controller controller;
controller.onEntry();
while (controller.isActive()) {
controller.onInput();
controller.onLoad();
controller.doRender();
}
controller.onExit();
return EXIT_SUCCESS;
}
#endif // YAZE_APP_CONTROLLER_ENTRYPOINT_H

View File

@@ -1 +1,13 @@
#include "yaze.h"
#include "yaze.h"
int main(int argc, char** argv) {
yaze::app::core::Controller controller;
controller.onEntry();
while (controller.isActive()) {
controller.onInput();
controller.onLoad();
controller.doRender();
}
controller.onExit();
return EXIT_SUCCESS;
}

View File

@@ -2,6 +2,5 @@
#define YAZE_YAZE_H
#include "app/core/controller.h"
#include "app/core/entry_point.h"
#endif // YAZE_YAZE_H