mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:20:06 +00:00
Draw a radial. This needs some cleanup, and some MVP matrix tweaking.
This commit is contained in:
parent
ace3aeb460
commit
516983ab09
10 changed files with 506 additions and 4 deletions
31
scwx-qt/source/scwx/qt/map/radar_layer.hpp
Normal file
31
scwx-qt/source/scwx/qt/map/radar_layer.hpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#include <qmapboxgl.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace qt
|
||||
{
|
||||
|
||||
class RadarLayerImpl;
|
||||
|
||||
class RadarLayer : public QMapbox::CustomLayerHostInterface
|
||||
{
|
||||
public:
|
||||
explicit RadarLayer();
|
||||
~RadarLayer();
|
||||
|
||||
RadarLayer(const RadarLayer&) = delete;
|
||||
RadarLayer& operator=(const RadarLayer&) = delete;
|
||||
|
||||
RadarLayer(RadarLayer&&) noexcept;
|
||||
RadarLayer& operator=(RadarLayer&&) noexcept;
|
||||
|
||||
void initialize() override final;
|
||||
void render(const QMapbox::CustomLayerRenderParameters&) override final;
|
||||
void deinitialize() override final;
|
||||
|
||||
private:
|
||||
std::unique_ptr<RadarLayerImpl> p;
|
||||
};
|
||||
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue