too tired to think
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#ifndef APPLICATION_HPP
|
||||
#define APPLICATION_HPP
|
||||
|
||||
#include "open_engine/core.hpp"
|
||||
#include "open_engine/events/application_event.hpp"
|
||||
#include "open_engine/imgui/imgui_layer.hpp"
|
||||
#include "open_engine/window/window.hpp"
|
||||
#include "open_engine/layer_stack.hpp"
|
||||
#include "open_engine/layer.hpp"
|
||||
|
||||
int main(int argc, char **argv);
|
||||
|
||||
namespace OpenEngine {
|
||||
class Application
|
||||
{
|
||||
@@ -15,8 +16,6 @@ namespace OpenEngine {
|
||||
Application();
|
||||
~Application();
|
||||
|
||||
void Run();
|
||||
|
||||
virtual void OnEvent(Event& event);
|
||||
|
||||
void QueueLayerPush(Ref<Layer> layer);
|
||||
@@ -30,9 +29,11 @@ namespace OpenEngine {
|
||||
inline void StopRunning() { running = false; };
|
||||
|
||||
private:
|
||||
void Run();
|
||||
bool OnWindowClose(WindowCloseEvent& event);
|
||||
bool OnWindowResize(WindowResizeEvent& event);
|
||||
|
||||
private:
|
||||
inline static Application* instance;
|
||||
|
||||
bool running = true;
|
||||
@@ -40,6 +41,8 @@ namespace OpenEngine {
|
||||
|
||||
Ref<ImGuiLayer> imgui_layer;
|
||||
LayerStack layer_stack;
|
||||
|
||||
friend int ::main(int argc, char **argv);
|
||||
};
|
||||
|
||||
// Is defined by client
|
||||
|
||||
Reference in New Issue
Block a user