8 #include "TextMeshes.h"
11 #include "PlaceNames.h"
12 #include "VectorMath.h"
27 TRAFFIC_LIGHTS = 9985,
48 Rendering::LayerIds::Values layerId,
49 float screenOversampleScale
53 PlaceNameView* CreatePlaceNameView(
const std::vector<u32>& textUtf32,
54 const std::string& iconKey,
56 const dv3& positionEcef,
57 const std::string& debugName,
59 bool hasUnderline =
false,
60 float unflattenableHeightOffset = 0.0f);
62 static const float UNDERLINE_POINTER_HEIGHT;
63 static const float UNDERLINE_POINTER_HEIGHT_LOW_LEVEL;
70 Rendering::LayerIds::Values m_layerId;
72 std::vector<Rendering::VertexTypes::TextVertex> m_underlineVertices;
73 const float m_underlineHorizontalOffset;
74 const float m_underlineThickness;
75 const float m_shadowOffset;
76 const float m_screenOversampleScale;
77 const float m_categoryScale;
78 int m_underlineCharacterTexturePage;
79 std::map<const std::string, IconCodepoint> m_iconCodepointMap;
81 const v4 m_foregroundColor;
82 const v4 m_outlineColor;
83 const v4 m_shadowColor;
85 const float m_haloWidth;
86 const float m_haloHardness;
90 void AddIconGeometry(u32 iconCodepointUft32,
float iconSize,
float xOffset,
float yOffset,
float altitude,
bool hasUnderline);
91 void AddUnderlineGeometry(
float textWidth,
float underlineHeight,
float altitude);
92 void InitUnderlineGeometry();
93 void BuildIconCodepointMap();