cleanup and instrumentation
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
#ifndef APPLICATION_HPP
|
||||
#define APPLICATION_HPP
|
||||
|
||||
#include "core.hpp"
|
||||
|
||||
#include "events/application_event.hpp"
|
||||
#include "imgui/imgui_layer.hpp"
|
||||
#include "layer.hpp"
|
||||
#include "layer_stack.hpp"
|
||||
#include "window/window.hpp"
|
||||
#include <memory>
|
||||
#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"
|
||||
|
||||
namespace OpenEngine {
|
||||
class OE_API Application
|
||||
class Application
|
||||
{
|
||||
public:
|
||||
Application();
|
||||
@@ -21,20 +19,15 @@ namespace OpenEngine {
|
||||
|
||||
virtual void OnEvent(Event& event);
|
||||
|
||||
//void PushOverlay(Ref<Layer> overlay);
|
||||
//void PopOverlay(Ref<Layer> overlay);
|
||||
|
||||
//void PushLayer(Ref<Layer> layer);
|
||||
//void PopLayer();
|
||||
void QueueLayerPush(Ref<Layer> layer);
|
||||
void QueueLayerPop(Ref<Layer> layer);
|
||||
void QueueOverlayPush(Ref<Layer> layer);
|
||||
void QueueOverlayPop(Ref<Layer> layer);
|
||||
|
||||
inline static Application& Get() { return *instance; }
|
||||
inline static Application& Get() { return *instance; };
|
||||
|
||||
inline Window& GetWindow() { return *window; }
|
||||
inline void StopRunning() { running = false; }
|
||||
inline Window& GetWindow() { return *window; };
|
||||
inline void StopRunning() { running = false; };
|
||||
|
||||
private:
|
||||
bool OnWindowClose(WindowCloseEvent& event);
|
||||
|
||||
Reference in New Issue
Block a user