moved a little around

This commit is contained in:
Ben
2021-09-17 17:37:47 +01:00
parent 23ff2547bb
commit 0954a27873
4 changed files with 33 additions and 14 deletions

View File

@@ -9,6 +9,9 @@
namespace Aeon::Core {
// NOTE: Derivations / children of "App" cannot attatch
// event listeners to themselves, the programmer must
// first add a gamelayer to handle events
class App : public EventListener
{
public:

View File

@@ -8,23 +8,11 @@ extern "C" {
#include <ThirdParty/glad.h>
}
#include "Aeon/Core/EngineConfig.hpp"
#include "Aeon/Core/Events.hpp"
namespace Aeon::Core {
struct DisplayProperties
{
std::string Name;
int Width, Height;
bool VSync;
DisplayProperties( std::string name, int width = 1200, int height = 900, bool vSync = true )
: Name( name ),
Width( width ),
Height( height ),
VSync( vSync ) { }
};
class Display : public EventListener
{
public:

View File

@@ -0,0 +1,28 @@
#ifndef AEON_CORE_ENGINECONFIG_H_
#define AEON_CORE_ENGINECONFIG_H_
namespace Aeon::Core
{
// TODO: this
struct AppProperties
{
std::string Name;
};
struct DisplayProperties
{
std::string Name;
int Width, Height;
bool VSync;
DisplayProperties( std::string name, int width = 1200, int height = 900, bool vSync = true )
: Name( name ),
Width( width ),
Height( height ),
VSync( vSync ) { }
};
}
#endif

View File

@@ -82,7 +82,7 @@ public:
EventListener();
virtual ~EventListener();
void RegisterAsSink( std::string system, int layer );
void RegisterAsSink( std::string system, int layer = 0 );
void DeRegisterAsSink( std::string system );
void UpdateLayer( int layer );