26 lines
589 B
C++
26 lines
589 B
C++
#include <iostream>
|
|
//#include "../../HydraEngine/Hydra.h"
|
|
#include "HydraGame.h"
|
|
|
|
|
|
#include <memory>
|
|
|
|
#ifdef _WIN32
|
|
extern "C" {
|
|
// Forces NVIDIA Optimus to activate the dGPU
|
|
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
|
|
|
|
// Forces AMD PowerXpress/Enduro to activate the dGPU
|
|
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
|
}
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
HydraGame* game = new HydraGame();
|
|
HydraEngine* engine = HydraEngine::GetInstance();
|
|
engine->InitialiseGame(game);
|
|
engine->Start();
|
|
delete game;
|
|
return 0;
|
|
} |