1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-05-14 20:47:46 +00:00
novus/apps/mapeditor/include/mapview.h
Joshua Goins dfef9fdccf Draw spheres at every instance object location
Now we can see where each object is (there's no way to tell them apart
yet.) The rendering is also extremely inefficient, so don't be surprised
if it slows down on your computer.
2025-05-13 16:57:37 -04:00

32 lines
621 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 AppState;
class MapView : public QWidget
{
Q_OBJECT
public:
explicit MapView(GameData *data, FileCache &cache, AppState *appState, QWidget *parent = nullptr);
MDLPart &part() const;
public Q_SLOTS:
void addTerrain(QString basePath, physis_Terrain terrain);
private:
MDLPart *mdlPart = nullptr;
GameData *data;
FileCache &cache;
};