15 #include <vsg/core/Array.h>
16 #include <vsg/text/TextLayout.h>
24 void read(
Input& input)
override;
25 void write(
Output& output)
const override;
31 TOP_ALIGNMENT = LEFT_ALIGNMENT,
34 BOTTOM_ALIGNMENT = RIGHT_ALIGNMENT
44 Alignment horizontalAlignment = BASELINE_ALIGNMENT;
45 Alignment verticalAlignment = BASELINE_ALIGNMENT;
46 GlyphLayout glyphLayout = LEFT_TO_RIGHT_LAYOUT;
47 vec3 position =
vec3(0.0f, 0.0f, 0.0f);
48 vec3 horizontal =
vec3(1.0f, 0.0f, 0.0f);
49 vec3 vertical =
vec3(0.0f, 1.0f, 0.0f);
50 vec4 color =
vec4(1.0f, 1.0f, 1.0f, 1.0f);
51 vec4 outlineColor =
vec4(0.0f, 0.0f, 0.0f, 1.0f);
52 float outlineWidth = 0.0f;
53 bool billboard =
false;
54 float billboardAutoScaleDistance = 0.0f;
56 bool requiresBillboard()
const override {
return billboard; }
57 void layout(
const Data* text,
const Font& font, TextQuads& texQuads)
override;
58 vec2 alignment(
const Data* text,
const Font& font)
const override;
59 dbox extents(
const Data* text,
const Font& font)
const override;
Definition: StandardLayout.h:22