Constructors
constructor
Parameters
Properties
Protected _drawType
Protected _indexCount
_indexCount: number
Protected _shader
Protected _vertexCount
_vertexCount: number
Readonly coreData
Readonly uuid
uuid: string
Accessors
attributes
drawInfo
Returns { drawCount: number; drawIndex: boolean; drawMode: DrawMode; drawType: ComponentType }
drawCount: number
drawIndex: boolean
indexCount
Returns number
positions
shader
vertexCount
- get vertexCount(): number
Returns number
Methods
Protected _appendAttribute
- _appendAttribute(key: string, value: number[]): void
Parameters
key: string
value: number[]
Returns void
Protected _setAttribute
- _setAttribute(key: string, value: number[]): void
Parameters
key: string
value: number[]
Returns void
appendIndices
- appendIndices(value: number[]): void
Parameters
Returns void
appendPositions
- appendPositions(value: number[]): void
Parameters
Returns void
setIndices
- setIndices(value: number[]): void
Parameters
Returns void
setPositions
- setPositions(value: number[]): void
Parameters
Returns void
2D 专用 Mesh 主要包含每个绘制元素的基本属性数据