1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-08 10:37:44 +00:00
novus/parts/mtrl/mtrlpart.h

38 lines
812 B
C
Raw Normal View History

2024-04-26 22:32:25 -04:00
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QWidget>
#include <QTabWidget>
2024-04-26 22:32:25 -04:00
#include <physis.hpp>
class MtrlPart : public QWidget
2024-04-26 22:32:25 -04:00
{
Q_OBJECT
public:
explicit MtrlPart(GameData *data, QWidget *parent = nullptr);
2024-04-26 22:32:25 -04:00
void load(physis_Material file);
2024-04-26 22:32:25 -04:00
private:
void rebuild();
QVBoxLayout *m_itemsLayout = nullptr;
QLineEdit *m_shaderPackageName = nullptr;
QTabWidget *m_tabWidget = nullptr;
QVBoxLayout *m_propertiesLayout = nullptr;
QVBoxLayout *m_texturesLayout = nullptr;
QVBoxLayout *m_constantsLayout = nullptr;
2024-04-26 22:32:25 -04:00
physis_Material m_material = {};
physis_SHPK m_shpk = {};
GameData *m_data = nullptr;
};