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

29 lines
483 B
C
Raw Normal View History

2018-12-21 06:32:37 -05:00
#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;
};