34 lines
618 B
C++
34 lines
618 B
C++
|
#pragma once
|
||
|
|
||
|
#include <vulkan/vulkan.h>
|
||
|
|
||
|
class GFX
|
||
|
{
|
||
|
public:
|
||
|
static void MakeContextCurrent();
|
||
|
static void SwapBuffers();
|
||
|
|
||
|
static void GoFullscreen();
|
||
|
static void ExitFullscreen();
|
||
|
|
||
|
static VkSurfaceKHR CreateVulkanSurface(VkInstance instance);
|
||
|
|
||
|
static int& GetScreenWidth()
|
||
|
{
|
||
|
static int screenWidth = 1;
|
||
|
|
||
|
return screenWidth;
|
||
|
}
|
||
|
|
||
|
static int& GetScreenHeight()
|
||
|
{
|
||
|
static int screenHeight = 1;
|
||
|
|
||
|
return screenHeight;
|
||
|
}
|
||
|
|
||
|
static float GetScreenAspectRatio()
|
||
|
{
|
||
|
return GetScreenWidth() / static_cast<float>(GetScreenHeight());
|
||
|
}
|
||
|
};
|