24#define GLFW_INCLUDE_VULKAN
25#include <GLFW/glfw3.h>
68 void inputKeyCallback(GLFWwindow* window,
int key,
int scancode,
int action,
int mode);
79 std::vector<vk::Semaphore> renderingFinnishedSemaphore;
81 VkSurfaceKHR surface = VK_NULL_HANDLE;
84 const uint32_t WIDTH = 1920;
86 const uint32_t HEIGHT = 1080;
88 const std::vector<const char*> deviceExtensions = {
89 VK_KHR_SWAPCHAIN_EXTENSION_NAME
92 GLFWwindow* window =
nullptr;
94 float deltaValueCalibration = 0.1;
Contain the class WindowAbstract.
The class that manages the drawing operation (manage and record command buffers).
Abstraction of the way of the result is displayed (screen or HMD).
The class that represents a window created with the GLFW library.
void framebufferResizeCallback()
void checkForCorrectSize() override
void getFrameBufferSize(int *w, int *h, vk::PhysicalDevice &pDevice) override
VkBool32 isDeviceSupportingSufaceKHR(VkPhysicalDevice device, int i) override
void createSurface() override
std::vector< const char * > getRequiredExtensions() override
void mainLoop(VulkanDrawing *vulkanDrawing) override
void inputKeyCallback(GLFWwindow *window, int key, int scancode, int action, int mode)
void continueInit() override
void cleanUpSurface() override
bool isSynchroWithSemaphore() override
std::vector< const char * > getRequiredDeviceExtensions() override
void printInputCommands()
SwapChainSupportDetails querySwapChainSupport(vk::PhysicalDevice device) override
void initWindow() override
void resetOrigin() override
Struct that contains the capability for the sapchain, the formats and the present mode supported.