Winter Cardinal UI - v0.442.0 / DDynamicTextGeometry
MeshGeometry
↳ DDynamicTextGeometry
• new DDynamicTextGeometry(): DDynamicTextGeometry
MeshGeometry.constructor
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:40
• clipped: boolean
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:30
• Protected
glVertexArrayObjects: any
A map of renderer IDs to webgl VAOs
MeshGeometry.glVertexArrayObjects
node_modules/pixi.js/pixi.js.d.ts:14256
• height: number
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:27
• indexBuffer: Buffer
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:37
• indices: Uint16Array
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:38
• instanceCount: number
Number of instances in this geometry, pass it to GeometrySystem.draw()
Member
PIXI.Geometry#instanceCount
Default
1
MeshGeometry.instanceCount
node_modules/pixi.js/pixi.js.d.ts:14262
• nchars: number
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:32
• refCount: number
Count of existing (not destroyed) meshes that reference this geometry
Member
PIXI.Geometry#refCount
MeshGeometry.refCount
node_modules/pixi.js/pixi.js.d.ts:14267
• scale: number
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:28
• scaled: boolean
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:29
• uvBuffer: Buffer
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:35
• uvs: Float32Array
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:36
• vertexBuffer: Buffer
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:33
• vertices: Float32Array
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:34
• width: number
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:26
▪ Static
Protected
Optional
INDICES: Uint16Array
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:24
▪ Static
Protected
Optional
UVS: Float32Array
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:23
▪ Static
Protected
Optional
VERTICES: Float32Array
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:22
▸ addAttribute(id
, buffer?
, size?
, normalized?
, type?
, stride?
, start?
, instance?
): Geometry
Adds an attribute to the geometry
Note: stride
and start
should be undefined
if you dont know them, not 0!
Name | Type | Description |
---|---|---|
id |
string |
the name of the attribute (matching up to a shader) |
buffer? |
number [] | Buffer |
the buffer that holds the data of the attribute . You can also provide an Array and a buffer will be created from it. |
size? |
number |
the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2 |
normalized? |
boolean |
should the data be normalized. |
type? |
number |
what type of number is the attribute. Check {PIXI.TYPES} to see the ones available |
stride? |
number |
How far apart (in floats) the start of each value is. (used for interleaving data) |
start? |
number |
How far into the array to start reading values (used for interleaving data) |
instance? |
boolean |
Instancing flag |
Geometry
returns self, useful for chaining.
MeshGeometry.addAttribute
node_modules/pixi.js/pixi.js.d.ts:14284
▸ addIndex(buffer?
): Geometry
Adds an index buffer to the geometry The index buffer contains integers, three for each triangle in the geometry, which reference the various attribute buffers (position, colour, UV coordinates, other UV coordinates, normal, …). There is only ONE index buffer.
Name | Type | Description |
---|---|---|
buffer? |
number [] | Buffer |
the buffer that holds the data of the index buffer. You can also provide an Array and a buffer will be created from it. |
Geometry
returns self, useful for chaining.
MeshGeometry.addIndex
node_modules/pixi.js/pixi.js.d.ts:14307
▸ clone(): Geometry
returns a clone of the geometry
Geometry
a new clone of this geometry
MeshGeometry.clone
node_modules/pixi.js/pixi.js.d.ts:14334
▸ destroy(): void
Destroys the geometry.
void
MeshGeometry.destroy
node_modules/pixi.js/pixi.js.d.ts:14328
▸ dispose(): void
disposes WebGL resources that are connected to this geometry
void
MeshGeometry.dispose
node_modules/pixi.js/pixi.js.d.ts:14324
▸ fill(vertices
, uvs
, index
, x
, y
, scale
, character
, fw
, fh
): void
Name | Type |
---|---|
vertices |
Float32Array |
uvs |
Float32Array |
index |
number |
x |
number |
y |
number |
scale |
number |
character |
DynamicFontAtlasCharacter |
fw |
number |
fh |
number |
void
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:127
▸ fillBlank(vertices
, uvs
, index
): void
Name | Type |
---|---|
vertices |
Float32Array |
uvs |
Float32Array |
index |
number |
void
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:174
▸ getAttribute(id
): Attribute
returns the requested attribute
Name | Type | Description |
---|---|---|
id |
string |
the name of the attribute required |
Attribute
the attribute requested.
MeshGeometry.getAttribute
node_modules/pixi.js/pixi.js.d.ts:14291
▸ getBuffer(id
): Buffer
returns the requested buffer
Name | Type | Description |
---|---|---|
id |
string |
the name of the buffer required |
Buffer
the buffer requested.
MeshGeometry.getBuffer
node_modules/pixi.js/pixi.js.d.ts:14298
▸ getIndex(): Buffer
returns the index buffer
Buffer
the index buffer.
MeshGeometry.getIndex
node_modules/pixi.js/pixi.js.d.ts:14313
▸ initIndices(indices
): void
Name | Type |
---|---|
indices |
Uint16Array |
void
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:195
▸ interleave(): Geometry
this function modifies the structure so that all current attributes become interleaved into a single buffer This can be useful if your model remains static as it offers a little performance boost
Geometry
returns self, useful for chaining.
MeshGeometry.interleave
node_modules/pixi.js/pixi.js.d.ts:14320
▸ update(text
, atlas
, modifier
): void
Name | Type |
---|---|
text |
string |
atlas |
null | DynamicFontAtlas |
modifier |
DDynamicTextGeometryModifier |
void
src/main/typescript/wcardinal/ui/d-dynamic-text-geometry.ts:62
▸ merge(geometries
): Geometry
merges an array of geometries into a new single one geometry attribute styles must match for this operation to work
Name | Type | Description |
---|---|---|
geometries |
Geometry [] |
array of geometries to merge |
Geometry
shiny new geometry!
MeshGeometry.merge
node_modules/pixi.js/pixi.js.d.ts:3115