Creates a new TextGeometry
.
Material used to render foreground glyphs.
Material used to render background glyphs.
Initial amount of glyphs that can be stored.
Maximum glyph capacity.
New TextGeometry
.
Maximum glyph capacity.
Mesh used to render background glyphs.
Count of currently drawn glyphs.
Mesh used to render foreground glyphs.
Add a new glyph to the TextGeometry
.
GlyphData holding the glyph description.
Transformed glyph corners.
Foreground glyph sampling weight.
Foreground glyph sampling weight.
If true
, UVs will be horizontally mirrored (needed for RTL punctuation).
Currently set TextRenderStyle.
Result of the addition.
Adds picking data for glyphs from the specified start until the last glyph added.
First glyph index that this picking data is associated to.
Last glyph index that this picking data is associated to.
Picking data to be added.
Add a previously computed TextBufferObject to the TextGeometry
. Extra parameters can
be passed to override the passed attribute data.
TextBufferObject containing computed glyphs.
Override position value.
Override scale value.
Override rotation value.
Override color value.
Override opacity value.
Override background color value.
Override background opacity value.
Result of the addition.
Add a new glyph to a text buffer.
Target buffer where glyph attributes will be stored.
Offset of the target buffer.
GlyphData holding the glyph description.
Transformed glyph corners.
Foreground glyph sampling weight.
Foreground glyph sampling weight.
If true
, UVs will be mirrored (needed for RTL punctuation).
Currently set TextRenderStyle.
Clear the geometry.
Release all allocated resources.
Fill the picking results for the pixel with the given screen coordinate. If multiple glyphs are found, the order of the results is unspecified.
Screen coordinate of picking position.
Callback to be called for every picked element.
Update the GPU resources to reflect the latest additions to the geometry.
Update the info with the memory footprint caused by objects owned by the TextGeometry
.
The info object to increment with the values from this TextGeometry
.
Generated using TypeDoc
Procedural geometry that holds vertex attribute data for all glyphs in a TextCanvas.