Home Reference Source
public class | source

GLContext

Static Method Summary

Static Public Methods
public static

getInstance(canvas: *, initParameter: *, gl: *, width: *, height: *): *

Constructor Summary

Public Constructor
public

constructor(canvas: *, initParameter: *, gl: *, width: *, height: *)

Member Summary

Public Members
public get
public get

canvas: *

public get
public set
public get
public set
public get

gl: *

public set

gl: *

public get
public

impl: *

Private Members
private
private
private
private
private

Method Summary

Public Methods
public
public

createBuffer(glBoostObject: *): *

public

createFramebuffer(glBoostObject: *): *

public

createProgram(glBoostObject: *): *

public

createRenderbuffer(glBoostObject: *): *

public

createShader(glBoostObject: *, shaderType: *): *

public

createTexture(glBoostObject: *): *

public

createVertexArray(glBoostObject: *): *

public
public

deleteFramebuffer(glBoostObject: *, frameBuffer: *)

public

deleteProgram(glBoostObject: *, program: *)

public

deleteRenderbuffer(glBoostObject: *, renderBuffer: *)

public

deleteShader(glBoostObject: *, shader: *)

public

deleteTexture(glBoostObject: *, texture: *)

public

getUniformLocation(glslProgram: *, uniformVariableName: *): *

public

uniform1f(uniformLocation: *, x: *, forceUpdate: *)

public

uniform1i(uniformLocation: *, x: *, forceUpdate: *)

public

uniform2f(uniformLocation: *, x: *, y: *, forceUpdate: *)

public

uniform2i(uniformLocation: *, x: *, y: *, forceUpdate: *)

public

uniform3f(uniformLocation: *, x: *, y: *, z: *, forceUpdate: *)

public

uniform3i(uniformLocation: *, x: *, y: *, z: *, forceUpdate: *)

public

uniform4f(uniformLocation: *, x: *, y: *, z: *, w: *, forceUpdate: *)

public

uniform4i(uniformLocation: *, x: *, y: *, z: *, w: *, forceUpdate: *)

public

uniformMatrix4fv(uniformLocation: *, toTranspose: *, matrix44: *, forceUpdate: *)

public

useProgram(program: *)

Private Methods
private

_setUniformValues(uniformFuncStr: *, args: *, forceUpdate: *)

Static Public Methods

public static getInstance(canvas: *, initParameter: *, gl: *, width: *, height: *): * source

Params:

NameTypeAttributeDescription
canvas *
initParameter *
gl *
width *
height *

Return:

*

Public Constructors

public constructor(canvas: *, initParameter: *, gl: *, width: *, height: *) source

Params:

NameTypeAttributeDescription
canvas *
initParameter *
gl *
width *
height *

Public Members

public get belongingCanvasId: string source

public get canvas: * source

public get canvasHeight: * source

public set canvasHeight: * source

public get canvasWidth: * source

public set canvasWidth: * source

public get gl: * source

public set gl: * source

public get glslProgramsLatestUsageCount: * source

public impl: * source

Private Members

private _canvasHeight: * source

private _canvasWidth: * source

private _currentProgramInuse: * source

private _glslProgramsLatestUsageCount: number source

private _monitor: * source

Public Methods

public checkGLError() source

public createBuffer(glBoostObject: *): * source

Params:

NameTypeAttributeDescription
glBoostObject *

Return:

*

public createFramebuffer(glBoostObject: *): * source

Params:

NameTypeAttributeDescription
glBoostObject *

Return:

*

public createProgram(glBoostObject: *): * source

Params:

NameTypeAttributeDescription
glBoostObject *

Return:

*

public createRenderbuffer(glBoostObject: *): * source

Params:

NameTypeAttributeDescription
glBoostObject *

Return:

*

public createShader(glBoostObject: *, shaderType: *): * source

Params:

NameTypeAttributeDescription
glBoostObject *
shaderType *

Return:

*

public createTexture(glBoostObject: *): * source

Params:

NameTypeAttributeDescription
glBoostObject *

Return:

*

public createVertexArray(glBoostObject: *): * source

Params:

NameTypeAttributeDescription
glBoostObject *

Return:

*

public deleteAllPrograms() source

public deleteFramebuffer(glBoostObject: *, frameBuffer: *) source

Params:

NameTypeAttributeDescription
glBoostObject *
frameBuffer *

public deleteProgram(glBoostObject: *, program: *) source

Params:

NameTypeAttributeDescription
glBoostObject *
program *

public deleteRenderbuffer(glBoostObject: *, renderBuffer: *) source

Params:

NameTypeAttributeDescription
glBoostObject *
renderBuffer *

public deleteShader(glBoostObject: *, shader: *) source

Params:

NameTypeAttributeDescription
glBoostObject *
shader *

public deleteTexture(glBoostObject: *, texture: *) source

Params:

NameTypeAttributeDescription
glBoostObject *
texture *

public getUniformLocation(glslProgram: *, uniformVariableName: *): * source

Params:

NameTypeAttributeDescription
glslProgram *
uniformVariableName *

Return:

*

public uniform1f(uniformLocation: *, x: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
x *
forceUpdate *

public uniform1i(uniformLocation: *, x: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
x *
forceUpdate *

public uniform2f(uniformLocation: *, x: *, y: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
x *
y *
forceUpdate *

public uniform2i(uniformLocation: *, x: *, y: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
x *
y *
forceUpdate *

public uniform3f(uniformLocation: *, x: *, y: *, z: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
x *
y *
z *
forceUpdate *

public uniform3i(uniformLocation: *, x: *, y: *, z: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
x *
y *
z *
forceUpdate *

public uniform4f(uniformLocation: *, x: *, y: *, z: *, w: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
x *
y *
z *
w *
forceUpdate *

public uniform4i(uniformLocation: *, x: *, y: *, z: *, w: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
x *
y *
z *
w *
forceUpdate *

public uniformMatrix4fv(uniformLocation: *, toTranspose: *, matrix44: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformLocation *
toTranspose *
matrix44 *
forceUpdate *

public useProgram(program: *) source

Params:

NameTypeAttributeDescription
program *

Private Methods

private _setUniformValues(uniformFuncStr: *, args: *, forceUpdate: *) source

Params:

NameTypeAttributeDescription
uniformFuncStr *
args *
forceUpdate *