|
Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
显示器. 更多...
#include <Monitor.h>
Public 成员函数 | |
| std::string_view | get_name () const |
| 获取显示器名称. | |
| Vector2i | get_size () const |
| 获取显示器大小(即分辨率), 单位: 像素. | |
| Vector2i | get_position () const |
| 获取显示器位置. | |
| int | get_refresh_rate () const |
| 获取显示器刷新率, 单位: Hz. | |
| bool | is_primary () const |
| 是否为主显示器. | |
| GLFWmonitor * | get_handle () const |
| 获取本地句柄. | |
| bool | operator== (const Monitor &) const =default |
静态 Public 成员函数 | |
| static const Monitor * | get_primary () noexcept |
| 获取主显示器. | |
| static const std::vector< Monitor > & | get_monitors () |
| 获取全部显示器. | |
| static void | init () |
| static void | deinit () |
显示器.