Skip to main content

Class: abstract Program<Uniform, N, E, G>

Extended by

Type Parameters

Uniform extends string = string

N extends Attributes = Attributes

E extends Attributes = Attributes

G extends Attributes = Attributes

Implements

Constructors

new Program()

new Program<Uniform, N, E, G>(gl, pickingBuffer, renderer): Program<Uniform, N, E, G>

Parameters

gl: WebGLRenderingContext | WebGL2RenderingContext

pickingBuffer: null | WebGLFramebuffer

renderer: Sigma<N, E, G>

Returns

Program<Uniform, N, E, G>

Defined in

sigma/src/rendering/program.ts:81

Properties

array

array: Float32Array

Defined in

sigma/src/rendering/program.ts:69


ATTRIBUTES

ATTRIBUTES: ProgramAttributeSpecification[]

Implementation of

InstancedProgramDefinition.ATTRIBUTES

Defined in

sigma/src/rendering/program.ts:60


ATTRIBUTES_ITEMS_COUNT

ATTRIBUTES_ITEMS_COUNT: number

Defined in

sigma/src/rendering/program.ts:65


capacity

capacity: number = 0

Defined in

sigma/src/rendering/program.ts:71


CONSTANT_ATTRIBUTES

CONSTANT_ATTRIBUTES: ProgramAttributeSpecification[]

Implementation of

InstancedProgramDefinition.CONSTANT_ATTRIBUTES

Defined in

sigma/src/rendering/program.ts:62


CONSTANT_DATA

CONSTANT_DATA: number[][]

Implementation of

InstancedProgramDefinition.CONSTANT_DATA

Defined in

sigma/src/rendering/program.ts:63


constantArray

constantArray: Float32Array

Defined in

sigma/src/rendering/program.ts:70


FRAGMENT_SHADER_SOURCE

FRAGMENT_SHADER_SOURCE: string

Implementation of

InstancedProgramDefinition.FRAGMENT_SHADER_SOURCE

Defined in

sigma/src/rendering/program.ts:58


isInstanced

isInstanced: boolean

Defined in

sigma/src/rendering/program.ts:77


METHOD

METHOD: number

Implementation of

InstancedProgramDefinition.METHOD

Defined in

sigma/src/rendering/program.ts:61


normalProgram

normalProgram: ProgramInfo<string>

Defined in

sigma/src/rendering/program.ts:74


pickProgram

pickProgram: null | ProgramInfo<string>

Defined in

sigma/src/rendering/program.ts:75


renderer

renderer: Sigma<N, E, G>

Defined in

sigma/src/rendering/program.ts:68


STRIDE

STRIDE: number

Defined in

sigma/src/rendering/program.ts:66


UNIFORMS

UNIFORMS: readonly Uniform[]

Implementation of

InstancedProgramDefinition.UNIFORMS

Defined in

sigma/src/rendering/program.ts:59


VERTEX_SHADER_SOURCE

VERTEX_SHADER_SOURCE: string

Implementation of

InstancedProgramDefinition.VERTEX_SHADER_SOURCE

Defined in

sigma/src/rendering/program.ts:57


VERTICES

VERTICES: number

Implementation of

InstancedProgramDefinition.VERTICES

Defined in

sigma/src/rendering/program.ts:56


verticesCount

verticesCount: number = 0

Defined in

sigma/src/rendering/program.ts:72

Methods

bindAttribute()

protected bindAttribute(attr, program, offset, setDivisor?): number

Parameters

attr: ProgramAttributeSpecification

program: ProgramInfo<string>

offset: number

setDivisor?: boolean

Returns

number

Defined in

sigma/src/rendering/program.ts:244


bindProgram()

protected bindProgram(program): void

Parameters

program: ProgramInfo<string>

Returns

void

Defined in

sigma/src/rendering/program.ts:206


drawWebGL()

drawWebGL(method, __namedParameters): void

Parameters

method: number

__namedParameters: ProgramInfo<string>

Returns

void

Defined in

sigma/src/rendering/program.ts:355


getDefinition()

abstract getDefinition(): ProgramDefinition<Uniform> | InstancedProgramDefinition<Uniform>

Returns

ProgramDefinition<Uniform> | InstancedProgramDefinition<Uniform>

Defined in

sigma/src/rendering/program.ts:79


getProgramInfo()

protected getProgramInfo(name, gl, vertexShaderSource, fragmentShaderSource, frameBuffer): ProgramInfo<string>

Parameters

name: "normal" | "pick"

gl: WebGLRenderingContext | WebGL2RenderingContext

vertexShaderSource: string

fragmentShaderSource: string

frameBuffer: null | WebGLFramebuffer

Returns

ProgramInfo<string>

Defined in

sigma/src/rendering/program.ts:150


hasNothingToRender()

hasNothingToRender(): boolean

Returns

boolean

Defined in

sigma/src/rendering/program.ts:312


kill()

kill(): void

Returns

void

Implementation of

AbstractProgram.kill

Defined in

sigma/src/rendering/program.ts:141


reallocate()

reallocate(capacity): void

Parameters

capacity: number

Returns

void

Implementation of

AbstractProgram.reallocate

Defined in

sigma/src/rendering/program.ts:297


render()

render(params): void

Parameters

params: RenderParams

Returns

void

Implementation of

AbstractProgram.render

Defined in

sigma/src/rendering/program.ts:334


renderProgram()

protected renderProgram(params, programInfo): void

Parameters

params: RenderParams

programInfo: ProgramInfo<string>

Returns

void

Defined in

sigma/src/rendering/program.ts:318


setUniforms()

abstract setUniforms(params, programInfo): void

Parameters

params: RenderParams

programInfo: ProgramInfo<string>

Returns

void

Defined in

sigma/src/rendering/program.ts:316


unbindAttribute()

protected unbindAttribute(attr, program, unsetDivisor?): void

Parameters

attr: ProgramAttributeSpecification

program: ProgramInfo<string>

unsetDivisor?: boolean

Returns

void

Defined in

sigma/src/rendering/program.ts:279


unbindProgram()

protected unbindProgram(program): void

Parameters

program: ProgramInfo<string>

Returns

void

Defined in

sigma/src/rendering/program.ts:235