Organized project files

This commit is contained in:
Pasha Bibko
2025-04-22 11:17:34 +01:00
parent c95d91b867
commit 0a7c2c0145
16 changed files with 101 additions and 73 deletions

View File

@@ -1,22 +0,0 @@
#include <Console.h>
#include <Windows.h>
#include <iostream>
namespace LX
{
void PrintStringAsColor(const std::string& str, Color c)
{
// Gets a handle to the console //
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
// Sets the color of the console to the desired color //
SetConsoleTextAttribute(hConsole, (WORD)c);
// Outputs the text //
std::cout << str;
// Resets the color //
SetConsoleTextAttribute(hConsole, (WORD)Color::LIGHT_GRAY);
}
}