Program
Defined in: packages/sigma/src/rendering/program.ts:88
Extended by
Section titled “Extended by”WebGLLayerProgramNodeProgramLabelProgramLabelBackgroundProgramBackdropProgramAttachmentProgramEdgeProgramEdgeLabelBackgroundProgram
Type Parameters
Section titled “Type Parameters”Uniform
Section titled “Uniform”Uniform extends string = string
N extends Attributes = Attributes
E extends Attributes = Attributes
G extends Attributes = Attributes
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Program<
Uniform,N,E,G>(gl,_pickingBuffer,renderer):Program<Uniform,N,E,G>
Defined in: packages/sigma/src/rendering/program.ts:144
Parameters
Section titled “Parameters”WebGL2RenderingContext
_pickingBuffer
Section titled “_pickingBuffer”WebGLFramebuffer | null
renderer
Section titled “renderer”Sigma<N, E, G>
Returns
Section titled “Returns”Program<Uniform, N, E, G>
Properties
Section titled “Properties”ATTRIBUTES
Section titled “ATTRIBUTES”ATTRIBUTES:
ProgramAttributeSpecification[]
Defined in: packages/sigma/src/rendering/program.ts:98
Implementation of
Section titled “Implementation of”InstancedProgramDefinition.ATTRIBUTES
ATTRIBUTES_ITEMS_COUNT
Section titled “ATTRIBUTES_ITEMS_COUNT”ATTRIBUTES_ITEMS_COUNT:
number
Defined in: packages/sigma/src/rendering/program.ts:103
capacity
Section titled “capacity”capacity:
number=0
Defined in: packages/sigma/src/rendering/program.ts:117
CONSTANT_ATTRIBUTES
Section titled “CONSTANT_ATTRIBUTES”CONSTANT_ATTRIBUTES:
ProgramAttributeSpecification[]
Defined in: packages/sigma/src/rendering/program.ts:100
Implementation of
Section titled “Implementation of”InstancedProgramDefinition.CONSTANT_ATTRIBUTES
CONSTANT_DATA
Section titled “CONSTANT_DATA”CONSTANT_DATA:
number[][]
Defined in: packages/sigma/src/rendering/program.ts:101
Implementation of
Section titled “Implementation of”InstancedProgramDefinition.CONSTANT_DATA
constantArray
Section titled “constantArray”constantArray:
Float32Array
Defined in: packages/sigma/src/rendering/program.ts:116
debugStats
Section titled “debugStats”debugStats:
object
Defined in: packages/sigma/src/rendering/program.ts:132
bufferUploadBytes
Section titled “bufferUploadBytes”bufferUploadBytes:
number=0
drawCalls
Section titled “drawCalls”drawCalls:
number=0
verticesDrawn
Section titled “verticesDrawn”verticesDrawn:
number=0
floats
Section titled “floats”floats:
Float32Array
Defined in: packages/sigma/src/rendering/program.ts:113
FRAGMENT_SHADER_SOURCE
Section titled “FRAGMENT_SHADER_SOURCE”FRAGMENT_SHADER_SOURCE:
string
Defined in: packages/sigma/src/rendering/program.ts:96
Implementation of
Section titled “Implementation of”InstancedProgramDefinition.FRAGMENT_SHADER_SOURCE
ints:
Uint32Array
Defined in: packages/sigma/src/rendering/program.ts:114
isInstanced
Section titled “isInstanced”isInstanced:
boolean
Defined in: packages/sigma/src/rendering/program.ts:140
METHOD
Section titled “METHOD”METHOD:
number
Defined in: packages/sigma/src/rendering/program.ts:99
Implementation of
Section titled “Implementation of”InstancedProgramDefinition.METHOD
normalProgram
Section titled “normalProgram”normalProgram:
ProgramInfo
Defined in: packages/sigma/src/rendering/program.ts:137
pickProgram
Section titled “pickProgram”pickProgram:
ProgramInfo<string> |null=null
Defined in: packages/sigma/src/rendering/program.ts:138
renderer
Section titled “renderer”renderer:
Sigma<N,E,G>
Defined in: packages/sigma/src/rendering/program.ts:106
STRIDE
Section titled “STRIDE”STRIDE:
number
Defined in: packages/sigma/src/rendering/program.ts:104
UNIFORMS
Section titled “UNIFORMS”UNIFORMS: readonly
Uniform[]
Defined in: packages/sigma/src/rendering/program.ts:97
Implementation of
Section titled “Implementation of”InstancedProgramDefinition.UNIFORMS
VERTEX_SHADER_SOURCE
Section titled “VERTEX_SHADER_SOURCE”VERTEX_SHADER_SOURCE:
string
Defined in: packages/sigma/src/rendering/program.ts:95
Implementation of
Section titled “Implementation of”InstancedProgramDefinition.VERTEX_SHADER_SOURCE
VERTICES
Section titled “VERTICES”VERTICES:
number
Defined in: packages/sigma/src/rendering/program.ts:94
Implementation of
Section titled “Implementation of”InstancedProgramDefinition.VERTICES
verticesCount
Section titled “verticesCount”verticesCount:
number=0
Defined in: packages/sigma/src/rendering/program.ts:118
Methods
Section titled “Methods”drawWebGL()
Section titled “drawWebGL()”drawWebGL(
method,__namedParameters):void
Defined in: packages/sigma/src/rendering/program.ts:459
Parameters
Section titled “Parameters”method
Section titled “method”number
__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”void
getDefinition()
Section titled “getDefinition()”
abstractgetDefinition():ProgramDefinition<Uniform> |InstancedProgramDefinition<Uniform>
Defined in: packages/sigma/src/rendering/program.ts:142
Returns
Section titled “Returns”ProgramDefinition<Uniform> | InstancedProgramDefinition<Uniform>
hasNothingToRender()
Section titled “hasNothingToRender()”hasNothingToRender():
boolean
Defined in: packages/sigma/src/rendering/program.ts:389
Returns
Section titled “Returns”boolean
invalidateBuffers()
Section titled “invalidateBuffers()”invalidateBuffers():
void
Defined in: packages/sigma/src/rendering/program.ts:384
Mark GPU buffers as needing re-upload. Call this after modifying the array data outside of reallocate.
Returns
Section titled “Returns”void
kill()
Section titled “kill()”kill():
void
Defined in: packages/sigma/src/rendering/program.ts:201
Returns
Section titled “Returns”void
reallocate()
Section titled “reallocate()”reallocate(
capacity):void
Defined in: packages/sigma/src/rendering/program.ts:362
Parameters
Section titled “Parameters”capacity
Section titled “capacity”number
Returns
Section titled “Returns”void
render()
Section titled “render()”render(
params,offset?,count?):void
Defined in: packages/sigma/src/rendering/program.ts:415
Parameters
Section titled “Parameters”params
Section titled “params”offset?
Section titled “offset?”number
count?
Section titled “count?”number
Returns
Section titled “Returns”void
resetDebugStats()
Section titled “resetDebugStats()”resetDebugStats():
void
Defined in: packages/sigma/src/rendering/program.ts:206
Returns
Section titled “Returns”void
setUniforms()
Section titled “setUniforms()”
abstractsetUniforms(params,programInfo):void
Defined in: packages/sigma/src/rendering/program.ts:397
Parameters
Section titled “Parameters”params
Section titled “params”programInfo
Section titled “programInfo”Returns
Section titled “Returns”void