Home Reference Source
import Mesh from './core/cgp/cgp_mesh.js'
public class | source

Mesh

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

instances: number

public

numIndex: number

Private Members
private
private
private

_cgp: *

private

_geom: *

private
private

_log: *

private
private
private

_numNonIndexed: number

private

_pipe: *

private

Method Summary

Public Methods
public
public

render()

public

setAttribute(name: String, array: Array, itemSize: Number, options: Object): *

public

setGeom(geom: Geometry, removeRef: boolean)

Private Methods
private

_createBuffer(device: *, data: *, usage: *): *

private

Public Constructors

public constructor() source

Public Members

public instances: number source

public numIndex: number source

Private Members

private _attributes: *[] source

private _bufVerticesIndizes: * source

private _cgp: * source

private _geom: * source

private _indicesBuffer: * source

private _log: * source

private _needsPipelineUpdate: boolean source

private _numIndices: * source

private _numNonIndexed: number source

private _pipe: * source

private _positionBuffer: * source

Public Methods

public dispose() source

public render() source

public setAttribute(name: String, array: Array, itemSize: Number, options: Object): * source

Params:

NameTypeAttributeDescription
name String

attribute name

array Array

data

itemSize Number
options Object

Return:

*

public setGeom(geom: Geometry, removeRef: boolean) source

Params:

NameTypeAttributeDescription
geom Geometry

geometry

removeRef boolean

Private Methods

private _createBuffer(device: *, data: *, usage: *): * source

Params:

NameTypeAttributeDescription
device *
data *
usage *

Return:

*

private _disposeAttributes() source