Constructs a new TextCanvas
.
TextCanvas
construction parameters.
New TextCanvas
.
Maximum amount of glyphs each TextCanvas layer can store.
Minimum amount of glyphs each TextCanvas layer can store.
Currently active text background rendering material.
Currently active text background rendering material.
Currently active FontCatalog.
Currently active FontCatalog.
Currently active text rendering material.
Currently active text rendering material.
Currently active text layout style.
Currently active text layout style.
Currently active text rendering style.
Currently active text rendering style.
Creates a new TextCanvas
rendering layer and returns. If there was already a layer for the
input layerId
, it just returns this one instead.
Desired layer identifier.
Created TextCanvasLayer.
Adds the input text to this TextCanvas
in the specified screen position. The current
TextRenderStyle and TextLayoutStyle will influence the results of this function.
Input text. Provide an array of GlyphData for better performance.
Screen position.
Optional addition parameters.
Result of the addition. If false
, some error occurred during execution and the
input text couldn't be properly added.
Adds a previously created TextBufferObject to the TextCanvas
. Additional parameters can
be provided to override the attributes stored in the buffer.
TextBufferObject to add.
Optional addition parameters.
Result of the addition. If false
, some error occurred during execution and the
input text couldn't be properly added.
Clears all the placed glyphs in this TextCanvas
(as well as resetting the current style).
Creates a new TextBufferObject. The computed text vertex buffer is equivalent to the
result of performing the addText
function for the input text in the screen origin.
Input text. Provide an array of GlyphData for better performance.
Optional creation parameters.
New TextBufferObject (or undefined
if requested text glyphs couldn't be
retrieved from the current FontCatalog).
Retrieves all TextCanvas
rendering layers.
Array of TextCanvasLayers.
Retrieves a specific TextCanvas
rendering layer.
Desired layer identifier.
Selected TextCanvasLayer.
Update the info with the memory footprint caused by objects owned by the TextCanvas
.
The info object to increment with the values from this TextCanvas
.
Returns the computed bounding box for the input text. The current TextRenderStyle and TextLayoutStyle will influence the results of this function.
Input text. Provide an array of GlyphData for better performance.
Output text bounding box.
Optional measurement parameters.
Result of the measurement. If false
, some error occurred during execution and the
input text couldn't be properly measured.
Executes the pickCallback
for all previously stored picking data for text covering the
specified screen position.
Renders the content of this TextCanvas
.
Orthographic camera.
Optional Id the first layer to be rendered has to be equal or above
Optional Id the last layer to be rendered has to be below
Optional render target.
Optional render target clear operation.
Generated using TypeDoc
three.js text rendering engine which can manage and render high-quality, transformable, stylable and properly layout SDF and MSDF text.