c++ - 获取可能的屏幕分辨率列表

标签 c++ sfml screen-resolution

可能正在进行“大脑卡住”,但无法弄清楚如何在 SFMLC++ 中获得可用的屏幕分辨率。 SFML 中是否有函数,还是我需要自己编写代码?

最佳答案

static const std::vector& sf::VideoMode::getFullscreenModes() :

static const std::vector& sf::VideoMode::getFullscreenModes() static

Retrieve all the video modes supported in fullscreen mode.

When creating a fullscreen window, the video mode is restricted to be compatible with what the graphics driver and monitor support. This function returns the complete list of all video modes that can be used in fullscreen mode. The returned array is sorted from best to worst, so that the first element will always give the best mode (higher width, height and bits-per-pixel).

Returns Array containing all the supported fullscreen modes

关于c++ - 获取可能的屏幕分辨率列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51572123/

相关文章:

iphone - iPhone 5中的相机屏幕尺寸

html - 缩放和分辨率

c++ - 确定没有 EXIF 数据的图像之间的停止差异

c++ - 减少从一个城市到不同停靠点的公交车的重叠计数,我目前的方法可以优化吗?

c++ - SFML 组合可绘制对象

c++ - 从 3D 转换为 2D 坐标问题

Android HTC Sensation 分辨率 QHD

c++ - 使用 OpenCV 写入 16 位未压缩图像

c# - Try 不捕获 DllImport 函数中的异常

c++ - vector 不是模板?