mirror of
https://github.com/obhq/obliteration.git
synced 2024-11-23 11:19:56 +00:00
24 lines
345 B
C++
24 lines
345 B
C++
#include "screen.hpp"
|
|
|
|
Screen::Screen()
|
|
{
|
|
#ifdef __APPLE__
|
|
setSurfaceType(QSurface::MetalSurface);
|
|
#else
|
|
setSurfaceType(QSurface::VulkanSurface);
|
|
#endif
|
|
}
|
|
|
|
Screen::~Screen()
|
|
{
|
|
}
|
|
|
|
bool Screen::event(QEvent *ev)
|
|
{
|
|
if (ev->type() == QEvent::UpdateRequest) {
|
|
emit updateRequestReceived();
|
|
}
|
|
|
|
return QWindow::event(ev);
|
|
}
|