implement alwaysVisible

This commit is contained in:
Konstantin Käfer
2014-03-24 17:38:10 +01:00
parent 76d3d7badb
commit 9621038d8a
9 changed files with 24 additions and 9 deletions

View File

@@ -121,6 +121,8 @@ struct TextClass {
Color halo = {{ 1, 1, 1, 0.75 }};
FunctionProperty<float> haloRadius = 0.25f;
FunctionProperty<float> size = 12.0f;
FunctionProperty<float> rotate = 0.0f;
FunctionProperty<bool> alwaysVisible = false;
};
struct TextProperties {
@@ -129,6 +131,8 @@ struct TextProperties {
Color halo = {{ 1, 1, 1, 0.75 }};
float haloRadius = 0.25f;
float size = 12.0f;
float rotate = 0.0f;
bool alwaysVisible = false;
};
struct BackgroundClass {

View File

@@ -14,7 +14,7 @@ public:
PlacementProperty place(const PlacedGlyphs &boxes,
const CollisionAnchor &anchor,
float minPlacementScale, float maxPlacementScale,
float padding, bool horizontal);
float padding, bool horizontal, bool alwaysVisible);
float getPlacementScale(const GlyphBoxes &glyphs, float minPlacementScale,
float maxPlacementScale, float pad);
PlacementRange getPlacementRange(const GlyphBoxes &glyphs,