Winter Cardinal UI - v0.457.0 / DBaseMeshGeometry
MeshGeometry
↳ DBaseMeshGeometry
• new DBaseMeshGeometry(vertices, uvs, indices): DBaseMeshGeometry
| Name | Type |
|---|---|
vertices |
number[] | Float32Array |
uvs |
number[] | Float32Array |
indices |
number[] | Uint16Array |
MeshGeometry.constructor
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:32
• Protected _cornerMask: number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:22
• Protected _cornerRadius: number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:21
• Protected _height: number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:20
• Protected _indexBuffer: Buffer
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:29
• Protected _indices: Uint16Array
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:26
• Protected _isDirty: boolean
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:23
• Protected _resolution: number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:30
• Protected _uvBuffer: Buffer
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:28
• Protected _uvs: Float32Array
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:25
• Protected _vertexBuffer: Buffer
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:27
• Protected _vertices: Float32Array
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:24
• Protected _width: number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:19
• Protected glVertexArrayObjects: any
A map of renderer IDs to webgl VAOs
MeshGeometry.glVertexArrayObjects
node_modules/pixi.js/pixi.js.d.ts:14256
• 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
• 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
▪ Static Protected N: number = 5
Note that this must be an odd number.
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:16
▪ Static Protected Optional TABLES: DBaseMeshGeometryTable[]
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:17
• get cornerMask(): number
number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:87
• set cornerMask(cornerMask): void
| Name | Type |
|---|---|
cornerMask |
number |
void
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:91
• get cornerRadius(): number
number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:76
• set cornerRadius(borderSize): void
| Name | Type |
|---|---|
borderSize |
number |
void
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:80
• get height(): number
number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:65
• set height(height): void
| Name | Type |
|---|---|
height |
number |
void
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:69
• get width(): number
number
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:54
• set width(width): void
| Name | Type |
|---|---|
width |
number |
void
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:58
▸ 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
▸ 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
▸ getTables(): DBaseMeshGeometryTable[]
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:98
▸ 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
▸ newTable(n, a0, da): DBaseMeshGeometryTable
| Name | Type |
|---|---|
n |
number |
a0 |
number |
da |
number |
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:118
▸ newTables(n): DBaseMeshGeometryTable[]
| Name | Type |
|---|---|
n |
number |
src/main/typescript/wcardinal/ui/d-base-mesh-geometry.ts:107
▸ 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