TextBuffer
Extends:
Text buffer. Renders screen-aligned text strings.
Example:
var textBuffer = new TextBuffer( {
position: new Float32Array( [ 0, 0, 0 ] ),
color: new Float32Array( [ 1, 0, 0 ] ),
size: new Float32Array( [ 2 ] ),
text: [ "Hello" ]
} );
Constructor Summary
Public Constructor | ||
public |
constructor(data: Object, params: TextBufferParameters) |
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public get |
|
|
public get |
|
|
public get |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public |
|
|
public |
|
|
public |
|
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Inherited Summary
From class Buffer | ||
public get |
|
|
public get |
|
|
public get abstract |
|
|
public get |
|
|
public set |
|
|
public get |
|
|
public get |
|
|
public get |
|
|
public get |
|
|
public get abstract |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
private |
|
|
public |
|
|
public |
|
|
public |
Free buffer resources |
|
public |
|
|
public |
|
|
public |
getMesh() |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
setAttributes(data: Object) Sets buffer attributes |
|
public |
|
|
public |
setParameters(params: BufferParameters): undefined Set buffer parameters |
|
public |
|
|
public |
|
|
public |
setVisibility(value: Boolean): undefined Set buffer visibility |
|
public |
|
|
public |
|
|
public |
|
|
private |
_getMesh() |
From class MappedBuffer | ||
public get |
|
|
public get |
|
|
public get abstract |
|
|
public get abstract |
|
|
public get abstract |
|
|
public get abstract |
|
|
public get abstract |
|
|
public get abstract |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
From class MappedQuadBuffer | ||
public get |
|
|
public get |
|
|
public get |
|
|
public get |
|
|
public get |
|
|
public get |
|
Public Constructors
public constructor(data: Object, params: TextBufferParameters) source
Override:
MappedBuffer#constructorParams:
Name | Type | Attribute | Description |
data | Object | attribute object |
|
data.position | Float32Array | positions |
|
data.color | Float32Array | colors |
|
data.size | Float32Array | sizes |
|
data.text | String[] | text strings |
|
params | TextBufferParameters | parameters object |