mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-05 14:10:32 -04:00
Proper scene logic, whoo!
This commit is contained in:
parent
2e7f3b24ca
commit
551f3c834f
9 changed files with 108 additions and 79 deletions
|
@ -18,14 +18,21 @@
|
|||
#include "../EngineInterface.hpp"
|
||||
|
||||
namespace System {
|
||||
bool Shutdown = false;
|
||||
HINSTANCE hInst = NULL;
|
||||
HANDLE Terminate;
|
||||
HANDLE Process;
|
||||
HANDLE ProcessHeap;
|
||||
LARGE_INTEGER ClockFrequency;
|
||||
bool Keys[256];
|
||||
LARGE_INTEGER ClockFreq;
|
||||
float FramePeriod;
|
||||
UserInput_t UserInput;
|
||||
|
||||
//Event objects
|
||||
HANDLE Shutdown;
|
||||
HANDLE Initialized[2], Terminated[2];
|
||||
int Initialize(){
|
||||
QueryPerformanceFrequency(&ClockFreq);
|
||||
|
||||
DEVMODE dm;
|
||||
EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &dm);
|
||||
System::FramePeriod = 1.0f/dm.dmDisplayFrequency;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue