galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages Concepts
Windows.cpp
Go to the documentation of this file.
1
7
8#include "Windows.hpp"
9
10#ifdef GALAXY_WIN_PLATFORM
11
12#include <Windows.h>
13
14namespace galaxy
15{
16 namespace platform
17 {
18 void configure_terminal() noexcept
19 {
20 HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
21 DWORD mode = 0;
22
23 if (handle != nullptr)
24 {
25 GetConsoleMode(handle, &mode);
26 SetConsoleMode(handle, mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING);
27 }
28 }
29 } // namespace platform
30} // namespace galaxy
31
32#endif
Timer.hpp galaxy.
Definition Async.hpp:17