Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MeshBuffer

Hierarchy

  • MeshBuffer

Index

Constructors

constructor

Properties

Private _batcher

_batcher: UI

Private _dirty

_dirty: boolean = false

Private _hInputAssemblers

_hInputAssemblers: InputAssemblerHandle[] = []

Private _initIDataCount

_initIDataCount: number = 256 * 6

Private _initVDataCount

_initVDataCount: number = 256 * this._vertexFormatBytes

Private _nextFreeIAHandle

_nextFreeIAHandle: number = 0

Private outOfCallback

outOfCallback: ((...args: number[]) => void) | null = null

Private _vertexFormatBytes

_vertexFormatBytes: number = 9 * Float32Array.BYTES_PER_ELEMENT

attributes

attributes: IGFXAttribute[] = null!

byteOffset

byteOffset: number = 0

byteStart

byteStart: number = 0

iData

iData: Uint16Array | null = null

indexBuffer

indexBuffer: GFXBuffer = null!

indicesOffset

indicesOffset: number = 0

indicesStart

indicesStart: number = 0

lastByteOffset

lastByteOffset: number = 1

vData

vData: Float32Array | null = null

vertexBuffers

vertexBuffers: GFXBuffer[] = []

vertexOffset

vertexOffset: number = 0

vertexStart

vertexStart: number = 0

Static OPACITY_OFFSET

OPACITY_OFFSET: number = 8

Methods

Private reallocBuffer

  • _reallocBuffer(): void

Private reallocIData

  • reallocIData(copyOldData: boolean): void

Private reallocVData

  • reallocVData(copyOldData: boolean): void

destroy

  • destroy(): void

initialize

  • initialize(attrs: IGFXAttribute[], outOfCallback: ((...args: number[]) => void) | null): void

recordBatch

  • recordBatch(): InputAssemblerHandle

request

  • request(vertexCount?: number, indicesCount?: number): boolean

reset

  • reset(): void

uploadData

  • uploadData(): void

Generated using TypeDoc