docs(graphics): 添加渲染分辨率缩放模式的注释说明
为 ResolutionScaleMode 枚举添加详细的中文注释,说明每种缩放模式的具体行为
This commit is contained in:
@@ -4,10 +4,13 @@
|
||||
|
||||
namespace frostbite2D {
|
||||
|
||||
/**
|
||||
* @brief 虚拟分辨率缩放模式
|
||||
*/
|
||||
enum class ResolutionScaleMode {
|
||||
Disabled,
|
||||
Fit,
|
||||
FitHeight,
|
||||
Disabled, ///< 不保持纵横比,直接按窗口宽高分别缩放
|
||||
Fit, ///< 保持纵横比并完整显示,按较小缩放因子适配
|
||||
FitHeight, ///< 以高度优先适配,宽度不足时回退为 Fit
|
||||
};
|
||||
|
||||
struct RenderResolutionState {
|
||||
|
||||
Reference in New Issue
Block a user