Class: GUIGeometry
composite geometry of gui, holding and updating attribute data
Hierarchy
↳
GUIGeometry
Constructors
Properties
- maxQuadCount
- instanceID
- name
- subGeometries
- morphTargetsRelative
- morphTargetDictionary
- skinNames
- bindPose
- blendShapeData
- vertexDim
- vertexCount
Accessors
Methods
- updateSubGeometry
- resetSubGeometries
- updateBounds
- getPositionBuffer
- getSpriteBuffer
- getColorBuffer
- create
- fillQuad
- addSubGeometry
- generate
- setIndices
- setAttribute
- getAttribute
- hasAttribute
- genWireframe
- compute
- computeNormals
- isPrimitive
- destroy
Constructors
constructor
• new GUIGeometry(max
): GUIGeometry
constructor
Parameters
Name | Type | Description |
---|---|---|
max | number | max quad of a geometry |
Returns
GUIGeometry
Overrides
Defined in
src/components/gui/core/GUIGeometry.ts:45
Properties
maxQuadCount
• Readonly
maxQuadCount: number
Defined in
src/components/gui/core/GUIGeometry.ts:38
instanceID
• instanceID: string
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:39
name
• name: string
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:40
subGeometries
• subGeometries: SubGeometry
[] = []
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:41
morphTargetsRelative
• morphTargetsRelative: boolean
Inherited from
GeometryBase.morphTargetsRelative
Defined in
src/core/geometry/GeometryBase.ts:42
morphTargetDictionary
• morphTargetDictionary: Object
Index signature
▪ [blenderName: string
]: number
Inherited from
GeometryBase.morphTargetDictionary
Defined in
src/core/geometry/GeometryBase.ts:43
skinNames
• skinNames: string
[]
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:44
bindPose
• bindPose: Matrix4
[]
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:45
blendShapeData
• blendShapeData: BlendShapeData
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:46
vertexDim
• vertexDim: number
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:47
vertexCount
• vertexCount: number
= 0
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:48
Accessors
indicesBuffer
• get
indicesBuffer(): GeometryIndicesBuffer
Returns
Inherited from
GeometryBase.indicesBuffer
Defined in
src/core/geometry/GeometryBase.ts:69
vertexBuffer
• get
vertexBuffer(): GeometryVertexBuffer
Returns
Inherited from
GeometryBase.vertexBuffer
Defined in
src/core/geometry/GeometryBase.ts:73
vertexAttributes
• get
vertexAttributes(): string
[]
Returns
string
[]
Inherited from
GeometryBase.vertexAttributes
Defined in
src/core/geometry/GeometryBase.ts:77
vertexAttributeMap
• get
vertexAttributeMap(): Map
<string
, VertexAttributeData
>
Returns
Map
<string
, VertexAttributeData
>
Inherited from
GeometryBase.vertexAttributeMap
Defined in
src/core/geometry/GeometryBase.ts:81
geometryType
• get
geometryType(): GeometryVertexType
Returns
Inherited from
GeometryBase.geometryType
Defined in
src/core/geometry/GeometryBase.ts:85
• set
geometryType(value
): void
Parameters
Name | Type |
---|---|
value | GeometryVertexType |
Returns
void
Inherited from
GeometryBase.geometryType
Defined in
src/core/geometry/GeometryBase.ts:88
bounds
• get
bounds(): BoundingBox
Returns
BoundingBox
Inherited from
GeometryBase.bounds
Defined in
src/core/geometry/GeometryBase.ts:92
• set
bounds(value
): void
Parameters
Name | Type |
---|---|
value | BoundingBox |
Returns
void
Inherited from
GeometryBase.bounds
Defined in
src/core/geometry/GeometryBase.ts:135
Methods
updateSubGeometry
▸ updateSubGeometry(index
, start
, count
): SubGeometry
Parameters
Name | Type |
---|---|
index | number |
start | number |
count | number |
Returns
Defined in
src/components/gui/core/GUIGeometry.ts:50
resetSubGeometries
▸ resetSubGeometries(): void
Returns
void
Defined in
src/components/gui/core/GUIGeometry.ts:71
updateBounds
▸ updateBounds(min?
, max?
): this
the bounds will be set to infinity
Parameters
Name | Type |
---|---|
min? | Vector3 |
max? | Vector3 |
Returns
this
GUIGeometry
Defined in
src/components/gui/core/GUIGeometry.ts:84
getPositionBuffer
▸ getPositionBuffer(): StorageGPUBuffer
Returns
Defined in
src/components/gui/core/GUIGeometry.ts:92
getSpriteBuffer
▸ getSpriteBuffer(): StorageGPUBuffer
Returns
Defined in
src/components/gui/core/GUIGeometry.ts:100
getColorBuffer
▸ getColorBuffer(): StorageGPUBuffer
Returns
Defined in
src/components/gui/core/GUIGeometry.ts:108
create
▸ create(): this
Returns
this
Defined in
src/components/gui/core/GUIGeometry.ts:116
fillQuad
▸ fillQuad(quad
, transform
): void
Parameters
Name | Type |
---|---|
quad | GUIQuad |
transform | UITransform |
Returns
void
Defined in
src/components/gui/core/GUIGeometry.ts:170
addSubGeometry
▸ addSubGeometry(...lodLevels
): SubGeometry
add subGeometry from lod level
Parameters
Name | Type |
---|---|
...lodLevels | LODDescriptor [] |
Returns
See
LODDescriptor
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:144
generate
▸ generate(shaderReflection
): void
create geometry by shaderReflection
Parameters
Name | Type | Description |
---|---|---|
shaderReflection | ShaderReflection | ShaderReflection |
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:155
setIndices
▸ setIndices(data
): void
Parameters
Name | Type |
---|---|
data | ArrayBufferData |
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:165
setAttribute
▸ setAttribute(attribute
, data
): void
Parameters
Name | Type |
---|---|
attribute | string |
data | ArrayBufferData |
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:177
getAttribute
▸ getAttribute(attribute
): VertexAttributeData
Parameters
Name | Type |
---|---|
attribute | string |
Returns
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:190
hasAttribute
▸ hasAttribute(attribute
): boolean
Parameters
Name | Type |
---|---|
attribute | string |
Returns
boolean
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:194
genWireframe
▸ genWireframe(): Vector3
[]
Returns
Vector3
[]
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:198
compute
▸ compute(): void
Returns
void
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:251
computeNormals
▸ computeNormals(): this
Returns
this
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:270
isPrimitive
▸ isPrimitive(): boolean
Returns
boolean
Inherited from
Defined in
src/core/geometry/GeometryBase.ts:312
destroy
▸ destroy(force?
): void
Parameters
Name | Type |
---|---|
force? | boolean |
Returns
void