mirror of
https://github.com/redstrate/Novus.git
synced 2025-05-04 08:57:45 +00:00
This takes the existing properties widget in the new material editor and makes it reusable across multiple applications. It's now added to the Armoury which shows the gear's used materials. It's also added to the Data Explorer which now supports viewing material files. I fixed the render viewport crashing when hiding it again, and made it even more resilient.
32 lines
No EOL
709 B
C++
32 lines
No EOL
709 B
C++
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QWindow>
|
|
|
|
#include "imgui.h"
|
|
#include "mdlpart.h"
|
|
|
|
class VulkanWindow : public QWindow
|
|
{
|
|
public:
|
|
VulkanWindow(MDLPart *part, RenderManager *renderer, QVulkanInstance *instance);
|
|
|
|
void exposeEvent(QExposeEvent *) override;
|
|
|
|
bool eventFilter(QObject *watched, QEvent *event) override;
|
|
bool event(QEvent *e) override;
|
|
|
|
void render();
|
|
|
|
std::vector<DrawObject> models;
|
|
bool freeMode = false;
|
|
|
|
private:
|
|
bool m_initialized = false;
|
|
RenderManager *m_renderer;
|
|
QVulkanInstance *m_instance;
|
|
MDLPart *part;
|
|
bool pressed_keys[4] = {};
|
|
}; |