27 lines
544 B
C++
27 lines
544 B
C++
#pragma once
|
|
#include "ScriptEngine.h"
|
|
#include "HotReload.h"
|
|
|
|
class Application {
|
|
public:
|
|
Application();
|
|
~Application();
|
|
|
|
bool Initialize();
|
|
void Run();
|
|
void Shutdown();
|
|
|
|
private:
|
|
ScriptEngine scriptEngine;
|
|
HotReload* hotReload;
|
|
bool scriptCompilationError;
|
|
|
|
static const int WINDOW_WIDTH = 800;
|
|
static const int WINDOW_HEIGHT = 600;
|
|
static const int TARGET_FPS = 60;
|
|
static const char* WINDOW_TITLE;
|
|
static const char* SCRIPT_FILE;
|
|
|
|
void Update(float deltaTime);
|
|
void Draw();
|
|
}; |