Files
HydraV3/HydraClient/source/HydraClient.cpp
T
2026-07-17 15:30:29 +01:00

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;
}