mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
43 lines
720 B
C++
43 lines
720 B
C++
#pragma once
|
|
|
|
#include "win32basevideo.h"
|
|
#include "c_cvars.h"
|
|
#include "vulkan/system/vk_framebuffer.h"
|
|
|
|
|
|
EXTERN_CVAR(Bool, vid_fullscreen)
|
|
|
|
//==========================================================================
|
|
//
|
|
//
|
|
//
|
|
//==========================================================================
|
|
|
|
class Win32VulkanVideo : public Win32BaseVideo
|
|
{
|
|
VulkanDevice *device = nullptr;
|
|
public:
|
|
Win32VulkanVideo()
|
|
{
|
|
device = new VulkanDevice();
|
|
}
|
|
|
|
~Win32VulkanVideo()
|
|
{
|
|
delete device;
|
|
}
|
|
|
|
void Shutdown() override
|
|
{
|
|
delete device;
|
|
device = nullptr;
|
|
}
|
|
|
|
DFrameBuffer *CreateFrameBuffer() override
|
|
{
|
|
auto fb = new VulkanFrameBuffer(m_hMonitor, vid_fullscreen, device);
|
|
return fb;
|
|
}
|
|
|
|
protected:
|
|
};
|