Update placefile icon data outside of render loop, polygon and text cleanup

This commit is contained in:
Dan Paulat 2023-08-19 22:19:32 -05:00
parent b159540215
commit e021484bfb
5 changed files with 212 additions and 178 deletions

View file

@ -33,6 +33,11 @@ public:
void Render(const QMapLibreGL::CustomLayerRenderParameters& params) override;
void Deinitialize() override;
/**
* Resets and prepares the draw item for adding a new set of icons.
*/
void StartIcons();
/**
* Configures the textures for drawing the placefile icons.
*
@ -52,9 +57,9 @@ public:
void AddIcon(const std::shared_ptr<gr::Placefile::IconDrawItem>& di);
/**
* Resets the list of icons in preparation for rendering a new frame.
* Finalizes the draw item after adding new icons.
*/
void Reset();
void FinishIcons();
private:
class Impl;