Separate placefiles into their own layers

- Placefile rename is partially
- Texture repack might be broken
This commit is contained in:
Dan Paulat 2023-08-02 22:39:19 -05:00
parent 0be94c4de3
commit 117a473689
5 changed files with 155 additions and 17 deletions

View file

@ -2,6 +2,8 @@
#include <scwx/qt/map/draw_layer.hpp>
#include <string>
namespace scwx
{
namespace qt
@ -12,9 +14,14 @@ namespace map
class PlacefileLayer : public DrawLayer
{
public:
explicit PlacefileLayer(std::shared_ptr<MapContext> context);
explicit PlacefileLayer(std::shared_ptr<MapContext> context,
const std::string& placefileName);
~PlacefileLayer();
std::string placefile_name() const;
void set_placefile_name(const std::string& placefileName);
void Initialize() override final;
void Render(const QMapLibreGL::CustomLayerRenderParameters&) override final;
void Deinitialize() override final;