Update placefile text data outside of render loop, polygon cleanup

This commit is contained in:
Dan Paulat 2023-08-19 21:43:57 -05:00
parent 8f2b87790a
commit b159540215
6 changed files with 60 additions and 36 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 text.
*/
void StartText();
/**
* Adds placefile text to the internal draw list.
*
@ -41,9 +46,9 @@ public:
void AddText(const std::shared_ptr<gr::Placefile::TextDrawItem>& di);
/**
* Resets the list of text in preparation for rendering a new frame.
* Finalizes the draw item after adding new text.
*/
void Reset();
void FinishText();
private:
class Impl;