Extra2D/Extra2D/include/extra2d/debug/debug_config.h

54 lines
1.1 KiB
C
Raw Normal View History

#pragma once
#include <string>
#include <vector>
namespace extra2d {
/**
* @file debug_config.h
* @brief
*
* DebugModule
*/
/**
* @brief
*/
struct DebugConfigData {
bool enabled = false;
bool showFPS = false;
bool showMemoryUsage = false;
bool showRenderStats = false;
bool showColliders = false;
bool showGrid = false;
bool logToFile = false;
bool logToConsole = true;
int logLevel = 2;
bool breakOnAssert = true;
bool enableProfiling = false;
std::string logFilePath;
std::vector<std::string> debugFlags;
/**
* @brief
* @param flag
* @return true
*/
bool hasDebugFlag(const std::string& flag) const;
/**
* @brief
* @param flag
*/
void addDebugFlag(const std::string& flag);
/**
* @brief
* @param flag
*/
void removeDebugFlag(const std::string& flag);
};
}