-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLinuxApplication.cpp
30 lines (26 loc) · 971 Bytes
/
LinuxApplication.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "LinuxApplication.h"
#include "Helpers.h"
#include "WindowSystem.h"
//------------------------------------------------------------------------------
// LinuxApplication
//------------------------------------------------------------------------------
LinuxApplication::LinuxApplication()
{
}
//------------------------------------------------------------------------------
// ProcessMessages
//------------------------------------------------------------------------------
bool LinuxApplication::ProcessMessages()
{
WindowSystemInstance().ProcessEvents();
const bool shutDown = WindowSystemInstance().ShouldShutdown();
return !shutDown;
}
//------------------------------------------------------------------------------
// PlatformInstance
//------------------------------------------------------------------------------
Application& Application::PlatformInstance()
{
static LinuxApplication app;
return app;
}