mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
b65b83edb3
Like Linux and macOS this will only support borderless fullscreen in the active desktop resolution now, which is what modern systems need. The list of discrete resolutions has been removed as it makes no sense anymore with a fixed video mode - all the other scaling options remain active, though.
32 lines
515 B
C++
32 lines
515 B
C++
#ifndef __I_VIDEO_H__
|
|
#define __I_VIDEO_H__
|
|
|
|
|
|
class DFrameBuffer;
|
|
|
|
|
|
class IVideo
|
|
{
|
|
public:
|
|
virtual ~IVideo() {}
|
|
|
|
virtual DFrameBuffer *CreateFrameBuffer() = 0;
|
|
|
|
bool SetResolution();
|
|
|
|
virtual void DumpAdapters();
|
|
};
|
|
|
|
void I_InitGraphics();
|
|
void I_ShutdownGraphics();
|
|
|
|
extern IVideo *Video;
|
|
|
|
|
|
// Pause a bit.
|
|
// [RH] Despite the name, it apparently never waited for the VBL, even in
|
|
// the original DOS version (if the Heretic/Hexen source is any indicator).
|
|
void I_WaitVBL(int count);
|
|
|
|
|
|
#endif // __I_VIDEO_H__
|