Home Reference Source
public class | source

BasicGLProvider

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private

_canvas: *

private
private
private
private

_gl: *

private

_id: *

private

_shaders: {}

Method Summary

Public Methods
public

backgroundColor(): Color

public
public

canvas(): HTMLCanvasElement

public

container(): HTMLElement

public
public

getSize(sizeOut: Rect)

public
public

gl(): WebGLRenderingContext

public

height(): *

public

id(): string

public
public

Renders this provider's content, resizing the canvas to its container.

The default implementation only sets the WebGL's clear color to the background but does not clear the canvas.

public
public
public
public
public

Public Constructors

public constructor() source

Private Members

private _backgroundColor: * source

private _canvas: * source

private _container: * source

private _explicitHeight: * source

private _explicitWidth: * source

private _gl: * source

private _id: * source

private _shaders: {} source

Public Methods

public backgroundColor(): Color source

Return:

Color

Retrieves the current background color.

public canProject(): boolean source

Return:

boolean

Returns whether the window has a nonzero client width and height.

public canvas(): HTMLCanvasElement source

Return:

HTMLCanvasElement

public container(): HTMLElement source

Return:

HTMLElement

Returns the container that holds the canvas for this graph.

public getHeight(): number source

Return:

number

public getSize(sizeOut: Rect) source

Params:

NameTypeAttributeDescription
sizeOut Rect

public getWidth(): number source

Return:

number

public gl(): WebGLRenderingContext source

Return:

WebGLRenderingContext

public height(): * source

Return:

*

public id(): string source

Return:

string

public onContextChanged(isLost: boolean): undefined source

Params:

NameTypeAttributeDescription
isLost boolean

Return:

undefined

public render(): boolean source

Renders this provider's content, resizing the canvas to its container.

The default implementation only sets the WebGL's clear color to the background but does not clear the canvas.

Return:

boolean

public resize(w: number, h: number): undefined source

Params:

NameTypeAttributeDescription
w number
h number

Return:

undefined

public setBackground(color: undefined, args: Array): undefined source

Params:

NameTypeAttributeDescription
color undefined
args Array

Return:

undefined

public setExplicitSize(w: number, h: number): undefined source

Params:

NameTypeAttributeDescription
w number
h number

Return:

undefined

public shaders(): undefined source

Return:

undefined

public width(): number source

Return:

number