Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

generateNodeProgram

generateNodeProgram<N, E, G>(gl, pickingBuffer, renderer, nodePrimitives?): GeneratedNodeProgram<N, E, G>

Defined in: packages/sigma/src/primitives/parser.ts:302

Generates the full node program suite from a primitives declaration. Wraps createNodeProgram with primitive parsing and tacks on the declared graphic variables.

Type Parameters

N

N extends Attributes = Attributes

E

E extends Attributes = Attributes

G

G extends Attributes = Attributes

Parameters

gl

WebGL2RenderingContext

pickingBuffer

WebGLFramebuffer | null

renderer

Sigma<N, E, G>

nodePrimitives?

NodePrimitives

Returns

GeneratedNodeProgram<N, E, G>