sigma
Version:
A JavaScript library dedicated to graph drawing.
22 lines (21 loc) • 871 B
TypeScript
/**
* Sigma.js WebGL Renderer Fast Edge Program
* ==========================================
*
* Program rendering edges using GL_LINES which is presumably very fast but
* won't render thickness correctly on some GPUs and has some quirks.
* @module
*/
import { EdgeAttributes, NodeAttributes } from "../../../types";
import { AbstractEdgeProgram, RenderEdgeParams } from "./common/edge";
export default class EdgeFastProgram extends AbstractEdgeProgram {
positionLocation: GLint;
colorLocation: GLint;
matrixLocation: WebGLUniformLocation;
resolutionLocation: WebGLUniformLocation;
constructor(gl: WebGLRenderingContext);
bind(): void;
computeIndices(): void;
process(sourceData: NodeAttributes, targetData: NodeAttributes, data: EdgeAttributes, hidden: boolean, offset: number): void;
render(params: RenderEdgeParams): void;
}