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

AttachmentProgram

Defined in: packages/sigma/src/rendering/nodes/attachments/attachment-program.ts:241

Extends

  • Program<AttachmentUniform, N, E, G>

Type Parameters

N

N extends Attributes = Attributes

E

E extends Attributes = Attributes

G

G extends Attributes = Attributes

Constructors

Constructor

new AttachmentProgram<N, E, G>(gl, _pickingBuffer, renderer): AttachmentProgram<N, E, G>

Defined in: packages/sigma/src/rendering/program.ts:105

Parameters

gl

WebGL2RenderingContext

_pickingBuffer

WebGLFramebuffer | null

renderer

Sigma<N, E, G>

Returns

AttachmentProgram<N, E, G>

Inherited from

Program.constructor

Properties

array

array: Float32Array

Defined in: packages/sigma/src/rendering/program.ts:74

Inherited from

Program.array


ATTRIBUTES

ATTRIBUTES: ProgramAttributeSpecification[]

Defined in: packages/sigma/src/rendering/program.ts:65

Inherited from

Program.ATTRIBUTES


ATTRIBUTES_ITEMS_COUNT

ATTRIBUTES_ITEMS_COUNT: number

Defined in: packages/sigma/src/rendering/program.ts:70

Inherited from

Program.ATTRIBUTES_ITEMS_COUNT


capacity

capacity: number = 0

Defined in: packages/sigma/src/rendering/program.ts:76

Inherited from

Program.capacity


CONSTANT_ATTRIBUTES

CONSTANT_ATTRIBUTES: ProgramAttributeSpecification[]

Defined in: packages/sigma/src/rendering/program.ts:67

Inherited from

Program.CONSTANT_ATTRIBUTES


CONSTANT_DATA

CONSTANT_DATA: number[][]

Defined in: packages/sigma/src/rendering/program.ts:68

Inherited from

Program.CONSTANT_DATA


constantArray

constantArray: Float32Array

Defined in: packages/sigma/src/rendering/program.ts:75

Inherited from

Program.constantArray


FRAGMENT_SHADER_SOURCE

FRAGMENT_SHADER_SOURCE: string

Defined in: packages/sigma/src/rendering/program.ts:63

Inherited from

Program.FRAGMENT_SHADER_SOURCE


isInstanced

isInstanced: boolean

Defined in: packages/sigma/src/rendering/program.ts:91

Inherited from

Program.isInstanced


METHOD

METHOD: number

Defined in: packages/sigma/src/rendering/program.ts:66

Inherited from

Program.METHOD


normalProgram

normalProgram: ProgramInfo

Defined in: packages/sigma/src/rendering/program.ts:88

Inherited from

Program.normalProgram


pickProgram

pickProgram: ProgramInfo<string> | null = null

Defined in: packages/sigma/src/rendering/program.ts:89

Inherited from

Program.pickProgram


renderer

renderer: Sigma<N, E, G>

Defined in: packages/sigma/src/rendering/program.ts:73

Inherited from

Program.renderer


STRIDE

STRIDE: number

Defined in: packages/sigma/src/rendering/program.ts:71

Inherited from

Program.STRIDE


UNIFORMS

UNIFORMS: readonly ("u_matrix" | "u_resolution" | "u_labelPixelSnapping" | "u_sizeRatio" | "u_correctionRatio" | "u_cameraAngle" | "u_nodeDataTexture" | "u_nodeDataTextureWidth" | "u_atlasTexture")[]

Defined in: packages/sigma/src/rendering/program.ts:64

Inherited from

Program.UNIFORMS


VERTEX_SHADER_SOURCE

VERTEX_SHADER_SOURCE: string

Defined in: packages/sigma/src/rendering/program.ts:62

Inherited from

Program.VERTEX_SHADER_SOURCE


VERTICES

VERTICES: number

Defined in: packages/sigma/src/rendering/program.ts:61

Inherited from

Program.VERTICES


verticesCount

verticesCount: number = 0

Defined in: packages/sigma/src/rendering/program.ts:77

Inherited from

Program.verticesCount

Methods

drawWebGL()

drawWebGL(method, __namedParameters): void

Defined in: packages/sigma/src/rendering/nodes/attachments/attachment-program.ts:336

Parameters

method

number

__namedParameters

ProgramInfo

Returns

void

Overrides

Program.drawWebGL


getDefinition()

getDefinition(): InstancedProgramDefinition<"u_matrix" | "u_resolution" | "u_labelPixelSnapping" | "u_sizeRatio" | "u_correctionRatio" | "u_cameraAngle" | "u_nodeDataTexture" | "u_nodeDataTextureWidth" | "u_atlasTexture">

Defined in: packages/sigma/src/rendering/nodes/attachments/attachment-program.ts:249

Returns

InstancedProgramDefinition<"u_matrix" | "u_resolution" | "u_labelPixelSnapping" | "u_sizeRatio" | "u_correctionRatio" | "u_cameraAngle" | "u_nodeDataTexture" | "u_nodeDataTextureWidth" | "u_atlasTexture">

Overrides

Program.getDefinition


hasNothingToRender()

hasNothingToRender(): boolean

Defined in: packages/sigma/src/rendering/nodes/attachments/attachment-program.ts:332

Returns

boolean

Overrides

Program.hasNothingToRender


invalidateBuffers()

invalidateBuffers(): void

Defined in: packages/sigma/src/rendering/program.ts:377

Mark GPU buffers as needing re-upload. Call this after modifying the array data outside of reallocate.

Returns

void

Inherited from

Program.invalidateBuffers


kill()

kill(): void

Defined in: packages/sigma/src/rendering/program.ts:166

Returns

void

Inherited from

Program.kill


processAttachment()

processAttachment(offset, data): void

Defined in: packages/sigma/src/rendering/nodes/attachments/attachment-program.ts:291

Writes attachment data for one instance.

Parameters

offset

number

data
atlasH

number

atlasW

number

atlasX

number

atlasY

number

attachHeight

number

attachmentPlacement

number

attachWidth

number

labelAngle

number

labelHeight

number

labelWidth

number

nodeIndex

number

positionMode

number

Returns

void


reallocate()

reallocate(capacity): void

Defined in: packages/sigma/src/rendering/program.ts:350

Parameters

capacity

number

Returns

void

Inherited from

Program.reallocate


reallocateAttachments()

reallocateAttachments(count): void

Defined in: packages/sigma/src/rendering/nodes/attachments/attachment-program.ts:324

Parameters

count

number

Returns

void


render()

render(params, offset?, count?): void

Defined in: packages/sigma/src/rendering/program.ts:537

Parameters

params

RenderParams

offset?

number

count?

number

Returns

void

Inherited from

Program.render


setUniforms()

setUniforms(params, __namedParameters): void

Defined in: packages/sigma/src/rendering/nodes/attachments/attachment-program.ts:276

Parameters

params

RenderParams

__namedParameters

ProgramInfo

Returns

void

Overrides

Program.setUniforms