Files
HydraV3/HydraEngine/source/engine/HydraObject.cpp
T

25 lines
563 B
C++
Raw Normal View History

2026-07-17 15:30:29 +01:00
#include "HydraObject.h"
#include "HydraEngine.h"
HydraEngine *const HydraObject::GetEngine()
{
return HydraEngine::GetInstance();
}
void HydraObject::DebugLog(std::string log_entry)
{
2026-08-28 16:36:25 +01:00
#ifdef __unix__ /* __unix__ is usually defined by compilers targeting Unix systems */
std::cout << log_entry + "\r\n";
#elif defined(_WIN32) || defined(WIN32) /* _Win32 is usually defined by compilers targeting 32 or 64 bit Windows systems */
2026-08-30 19:06:41 +01:00
//OutputDebugString(log_entry.c_str());
2026-08-28 16:36:25 +01:00
#endif
2026-07-17 15:30:29 +01:00
}
void HydraObject::ClearLog()
{
std::cout << "\x1B[2J\x1B[H";
}