跳到主要内容
版本:v10.0

M3D / M3D / Render / BufferFactory

Class: BufferFactory

M3D.Render.BufferFactory

Memberof

M3D.Render

Description

Buffer工厂类

Table of contents

Constructors

Methods

Constructors

constructor

new BufferFactory(): BufferFactory

Returns

BufferFactory

Methods

getBuffer

getBuffer(renderContext, type, vertexSet, isUpdate?): any

Parameters

NameType
renderContextRenderContext
typeBufferType
vertexSetVertexSet
isUpdate?boolean

Returns

any

Description

获取Buffer

getBuffer(renderContext, type, vertexHeader, isUpdate?): any

Parameters

NameType
renderContextRenderContext
typeBufferType
vertexHeaderVertexHeader
isUpdate?boolean

Returns

any

Description

获取Buffer

getBuffer(renderContext, type, buffer, isUpdate?): any

Parameters

NameType
renderContextRenderContext
typeBufferType
bufferArrayBuffer
isUpdate?boolean

Returns

any

Description

获取Buffer