mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:10:05 +00:00
MapContext has a GlContext instead of MapContext is a GlContext
This commit is contained in:
parent
58f2609fe7
commit
2d4ad2737e
31 changed files with 147 additions and 307 deletions
|
|
@ -1,17 +1,13 @@
|
|||
#include <scwx/qt/map/layer_wrapper.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
namespace map
|
||||
namespace scwx::qt::map
|
||||
{
|
||||
|
||||
class LayerWrapperImpl
|
||||
{
|
||||
public:
|
||||
explicit LayerWrapperImpl(std::shared_ptr<GenericLayer> layer) :
|
||||
layer_ {layer}
|
||||
layer_ {std::move(layer)}
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -20,7 +16,7 @@ public:
|
|||
std::shared_ptr<GenericLayer> layer_;
|
||||
};
|
||||
|
||||
LayerWrapper::LayerWrapper(std::shared_ptr<GenericLayer> layer) :
|
||||
LayerWrapper::LayerWrapper(const std::shared_ptr<GenericLayer>& layer) :
|
||||
p(std::make_unique<LayerWrapperImpl>(layer))
|
||||
{
|
||||
}
|
||||
|
|
@ -58,6 +54,4 @@ void LayerWrapper::deinitialize()
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace map
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
} // namespace scwx::qt::map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue