Skip to content
Discussion options

You must be logged in to vote

The vsg::StandardLayout class is the normal to set the position, orientation and size of the text. The orientation and size are setting is combined into the StandardLayout.horizontal and StandardLayout.vertical members that defines the two axis and scale of each glyph. The length of the horizontal and vertical effectively set the size.

The vsgtext example illustrates setup using StandardLayout:

            auto layout = vsg::StandardLayout::create();
            layout->horizontalAlignment = vsg::StandardLayout::CENTER_ALIGNMENT;
            layout->position = vsg::vec3(6.0, 0.0, 0.0);
            layout->horizontal = vsg::vec3(1.0, 0.0, 0.0); // horizontal size of single glyph is 1.0
   …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@valleymouth
Comment options

Answer selected by robertosfield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants