moved a little around
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user