VuoSceneText interface.
Definition in file VuoSceneText.h.
Go to the source code of this file.
Functions | |
VuoSceneObject | VuoSceneText_make (const VuoText text, const VuoFont font, const VuoBoolean scaleWithScene, const VuoReal wrapWidth, const VuoAnchor anchor) |
Creates a new VuoSceneObject set up with the correct font, shader, and mesh anchoring for text. More... | |
VuoAnchor | VuoSceneText_getAnchor (VuoSceneObject so) |
Returns the anchor used when VuoSceneText_make was called. More... | |
VuoPoint2d | VuoSceneText_getAnchorOffset (VuoSceneObject so, float verticalScale, float rotationZ, float wrapWidth, int viewportWidth, int backingScaleFactor) |
Returns the amount to translate the object to compensate for the anchor. More... | |
VuoAnchor VuoSceneText_getAnchor | ( | VuoSceneObject | so | ) |
Returns the anchor used when VuoSceneText_make was called.
Definition at line 107 of file VuoSceneText.c.
VuoPoint2d VuoSceneText_getAnchorOffset | ( | VuoSceneObject | so, |
float | verticalScale, | ||
float | rotationZ, | ||
float | wrapWidth, | ||
int | viewportWidth, | ||
int | backingScaleFactor | ||
) |
Returns the amount to translate the object to compensate for the anchor.
Definition at line 147 of file VuoSceneText.c.
VuoSceneObject VuoSceneText_make | ( | const VuoText | text, |
const VuoFont | font, | ||
const VuoBoolean | scaleWithScene, | ||
const VuoReal | wrapWidth, | ||
const VuoAnchor | anchor | ||
) |
Creates a new VuoSceneObject set up with the correct font, shader, and mesh anchoring for text.
text | The text to render. |
font | The font to render the text with. |
scaleWithScene | If true, the text scales when its part of the scenegraph, or the viewport, is scaled. If false, the text is rendered at a constant size. |
wrapWidth | The width (in Vuo Coordinates) at which to wrap lines, or INFINITY to disable wrapping. |
anchor | The position of the transform anchor. |
scaleWithScene
, wrapWidth
arguments. Definition at line 96 of file VuoSceneText.c.