Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/tools/common/include/renderwindow.h
2018-12-25 07:41:48 -05:00

28 lines
483 B
C++

#pragma once
#include <QWindow>
#include <vulkan/vulkan.h>
#include "context.h"
struct RenderTarget;
class RendererWindow : public QWindow {
Q_OBJECT
public:
RendererWindow(Context& context);
protected:
void exposeEvent(QExposeEvent* event) override;
bool event(QEvent* event) override;
private:
void init();
void render();
VkSurfaceKHR surface = nullptr;
RenderTarget* target = nullptr;
bool initialized = false;
Context& context;
};