28 lines
977 B
C
28 lines
977 B
C
|
|
#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; // 是否可调整大小
|
|||
|
|
bool vsync = true; // 是否垂直同步
|
|||
|
|
int32 fpsLimit = 0; // FPS限制(0表示不限制)
|
|||
|
|
int32 glMajor = 3; // OpenGL主版本
|
|||
|
|
int32 glMinor = 3; // OpenGL次版本
|
|||
|
|
bool enableCursors = true; // 启用光标
|
|||
|
|
bool enableDpiScale = false; // 启用DPI缩放
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace extra2d
|