mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 06:33:42 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
54
drape_frontend/text_handle.hpp
Normal file
54
drape_frontend/text_handle.hpp
Normal file
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
|
||||
#include "drape/glyph.hpp"
|
||||
#include "drape/overlay_handle.hpp"
|
||||
#include "drape/pointers.hpp"
|
||||
#include "drape/utils/vertex_decl.hpp"
|
||||
|
||||
#include "base/string_utils.hpp"
|
||||
|
||||
namespace dp
|
||||
{
|
||||
class TextureManager;
|
||||
}
|
||||
|
||||
namespace df
|
||||
{
|
||||
class TextHandle : public dp::OverlayHandle
|
||||
{
|
||||
public:
|
||||
TextHandle(dp::OverlayID const & id, dp::TGlyphs && glyphs,
|
||||
dp::Anchor anchor, uint64_t priority,
|
||||
ref_ptr<dp::TextureManager> textureManager,
|
||||
int minVisibleScale, bool isBillboard);
|
||||
|
||||
TextHandle(dp::OverlayID const & id, dp::TGlyphs && glyphs,
|
||||
dp::Anchor anchor, uint64_t priority,
|
||||
ref_ptr<dp::TextureManager> textureManager,
|
||||
gpu::TTextDynamicVertexBuffer && normals,
|
||||
int minVisibleScale, bool IsBillboard);
|
||||
|
||||
bool Update(ScreenBase const & screen) override;
|
||||
|
||||
void GetAttributeMutation(ref_ptr<dp::AttributeBufferMutator> mutator) const override;
|
||||
|
||||
bool IndexesRequired() const override;
|
||||
|
||||
void SetForceUpdateNormals(bool forceUpdate) const;
|
||||
|
||||
#ifdef DEBUG_OVERLAYS_OUTPUT
|
||||
virtual std::string GetOverlayDebugInfo() override;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
gpu::TTextDynamicVertexBuffer m_buffer;
|
||||
mutable bool m_forceUpdateNormals;
|
||||
|
||||
private:
|
||||
mutable bool m_isLastVisible;
|
||||
|
||||
dp::TGlyphs m_glyphs;
|
||||
ref_ptr<dp::TextureManager> m_textureManager;
|
||||
bool m_glyphsReady;
|
||||
};
|
||||
} // namespace df
|
||||
Reference in New Issue
Block a user