mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
21b4862460
* music system improvements * Zip64 support * fixes for menu scaling on ultrawide screens * Mac default paths fixed * lightmap code (not active yet)
32 lines
514 B
C++
32 lines
514 B
C++
#ifndef __I_VIDEO_H__
|
|
#define __I_VIDEO_H__
|
|
|
|
#include <cstdint>
|
|
|
|
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;
|
|
|
|
void I_PolyPresentInit();
|
|
uint8_t *I_PolyPresentLock(int w, int h, bool vsync, int &pitch);
|
|
void I_PolyPresentUnlock(int x, int y, int w, int h);
|
|
void I_PolyPresentDeinit();
|
|
|
|
|
|
#endif // __I_VIDEO_H__
|