virtualx-engine/platform/x11/vulkan_context_x11.h
Juan Linietsky fd188ddd51 Initial work on Vulkan:
-Added VulkanContext
-Added an X11 implementation
-Added a rendering device abstraction
-added a Vulkan rendering device abstraction
-Engine does not work, only shows Godot logo (run it from bin/)
2020-02-11 11:53:26 +01:00

18 lines
447 B
C++

#ifndef VULKAN_DEVICE_X11_H
#define VULKAN_DEVICE_X11_H
#include "drivers/vulkan/vulkan_context.h"
#include <X11/Xlib.h>
class VulkanContextX11 : public VulkanContext {
Window window;
Display *display;
virtual const char *_get_platform_surface_extension() const;
virtual VkResult _create_surface(VkSurfaceKHR *surface, VkInstance p_instance);
public:
VulkanContextX11(Window p_window, Display *display);
};
#endif // VULKAN_DEVICE_X11_H