mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-25 13:17:46 +00:00
33 lines
No EOL
600 B
C++
33 lines
No EOL
600 B
C++
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "filecache.h"
|
|
#include "mdlpart.h"
|
|
#include <QComboBox>
|
|
#include <QWidget>
|
|
#include <physis.hpp>
|
|
|
|
struct GameData;
|
|
|
|
class MaterialView : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MaterialView(GameData *data, FileCache &cache, QWidget *parent = nullptr);
|
|
|
|
MDLPart &part() const;
|
|
|
|
public Q_SLOTS:
|
|
void addSphere(physis_Material material);
|
|
|
|
private:
|
|
MDLPart *mdlPart = nullptr;
|
|
|
|
GameData *data;
|
|
FileCache &cache;
|
|
|
|
physis_MDL m_mdl;
|
|
}; |