|
ShitEngine
基于 C++20 与 SDL3 的轻量级 2D 游戏引擎
|
窗口管理类 更多...
#include <Window.h>
Public 成员函数 | |
| Window ()=default | |
| ~Window ()=default | |
| Window (const Window &)=delete | |
| Window & | operator= (const Window &)=delete |
| Window (Window &&)=delete | |
| Window & | operator= (Window &&)=delete |
静态 Public 成员函数 | |
| static Window & | GetInstance () |
| 获取单例 | |
| static bool | Init () |
| 初始化窗口 | |
| static SDL_Window * | GetWindow () |
| 获取原生 SDL_Window 指针 | |
| static void | HandleEvent (const SDL_Event &event) |
| 分发窗口事件给子系统 | |
| static bool | IsOpen () |
| 窗口是否仍然打开 | |
| static void | Close () |
| 关闭窗口 | |
| static void | Destroy () |
| 销毁窗口及资源 | |
窗口管理类
封装 SDL_Window 的生命周期,提供窗口事件处理与状态查询。
|
default |
|
default |
|
delete |
|
delete |
|
inlinestatic |
关闭窗口
|
static |
销毁窗口及资源
|
static |
获取单例
|
inlinestatic |
获取原生 SDL_Window 指针
|
inlinestatic |
分发窗口事件给子系统
|
inlinestatic |
初始化窗口
|
inlinestatic |
窗口是否仍然打开