Extra2D/include/config/app_config.h

25 lines
770 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include <string>
#include <types/base/types.h>
namespace extra2d {
/**
* @brief 应用程序配置
*
* 包含应用程序和窗口的初始化配置
*/
struct AppConfig {
std::string title = "Extra2D Application"; // 窗口标题
int32 width = 1280; // 窗口宽度
int32 height = 720; // 窗口高度
bool fullscreen = false; // 是否全屏
bool resizable = true; // 是否可调整大小
int32 fpsLimit = 0; // FPS限制0表示不限制
bool enableCursors = true; // 启用光标
bool enableDpiScale = false; // 启用DPI缩放
};
} // namespace extra2d