Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MeshBuffer

Hierarchy

  • MeshBuffer

Index

Constructors

constructor

  • Parameters

    • batcher: UI

    Returns MeshBuffer

Properties

Private _initIDataCount

_initIDataCount: number = 256 * 6

Private _initVDataCount

_initVDataCount: number = 256 * this._vertexFormatBytes

Private outofCallback

outofCallback: function | null = null

Private _vertexFormatBytes

_vertexFormatBytes: number = 9 * Float32Array.BYTES_PER_ELEMENT

batcher

batcher: UI

byteOffset

byteOffset: number = 0

byteStart

byteStart: number = 0

dirty

dirty: boolean = false

iData

iData: Uint16Array | null = null

ia

ia: GFXInputAssembler | null = null

ib

ib: GFXBuffer | null = null

indiceOffset

indiceOffset: number = 0

indiceStart

indiceStart: number = 0

lastByteOffset

lastByteOffset: number = 1

vData

vData: Float32Array | null = null

vb

vb: GFXBuffer | null = null

vertexOffset

vertexOffset: number = 0

vertexStart

vertexStart: number = 0

Static OPACITY_OFFSET

OPACITY_OFFSET: number = 8

Methods

Private reallocBuffer

  • _reallocBuffer(): void
  • Returns void

Private reallocIData

  • reallocIData(copyOldData: boolean): void
  • Parameters

    • copyOldData: boolean

    Returns void

Private reallocVData

  • reallocVData(copyOldData: boolean): void
  • Parameters

    • copyOldData: boolean

    Returns void

destroy

  • destroy(): void
  • Returns void

initialize

  • initialize(attrs: IGFXAttribute[], outofCallback: function | null): void
  • Parameters

    Returns void

request

  • request(vertexCount?: number, indiceCount?: number): boolean
  • Parameters

    • Default value vertexCount: number = 4
    • Default value indiceCount: number = 6

    Returns boolean

reset

  • reset(): void
  • Returns void

uploadData

  • uploadData(): void
  • Returns void

Generated using TypeDoc