Skip to content

RoyInterface / Exports / define/RoyBufferConst / RoyVtxBufConst

Class: RoyVtxBufConst

define/RoyBufferConst.RoyVtxBufConst

Table of contents

Constructors

Methods

Constructors

constructor

new RoyVtxBufConst(): RoyVtxBufConst

Returns

RoyVtxBufConst

Methods

getElementTypeCombineSize

getElementTypeCombineSize(type): 1 | 2 | 3 | 4 | 6 | 8 | 12 | 16

Parameters

NameType
typeVertexBuffer$AttributeType

Returns

1 | 2 | 3 | 4 | 6 | 8 | 12 | 16


getElementSize

getElementSize(type): 1 | 2 | 3 | 4

Parameters

NameType
typeVertexBuffer$AttributeType

Returns

1 | 2 | 3 | 4


getAttriIndexByNS

getAttriIndexByNS(pns): number

Parameters

NameType
pnsstring

Returns

number


getVBufNSByIndex

getVBufNSByIndex(bType): string

Parameters

NameType
bTypeVertexAttribute

Returns

string