Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
DEPTH_COMPARE_FUNC_ALWAYS: number |
|
public |
DEPTH_COMPARE_FUNC_EQUAL: number |
|
public |
DEPTH_COMPARE_FUNC_GREATER: number |
|
public |
DEPTH_COMPARE_FUNC_GREATEREQUAL: number |
|
public |
DEPTH_COMPARE_FUNC_LESS: number |
|
public |
DEPTH_COMPARE_FUNC_LESSEQUAL: number |
|
public |
DEPTH_COMPARE_FUNC_NEVER: number |
|
public |
DEPTH_COMPARE_FUNC_NOTEQUAL: number |
|
public |
aborted: boolean |
|
public get |
canvas: * |
|
public get |
canvasHeight: * |
|
public |
canvasScale: number |
|
public get |
canvasWidth: * |
|
public |
cgCanvas: * |
|
public |
fpsCounter: * |
|
public |
mMatrix: mat4 Current model matrix |
|
public |
pMatrix: mat4 Current projection matrix |
|
public |
patch: * |
|
public set |
|
|
public get |
pixelDensity: * |
|
public |
vMatrix: mat4 Current view matrix |
Private Members | ||
private |
_ident: * |
|
private |
_identView: * |
|
private |
|
|
private |
|
|
private |
_textureslots: *[] |
|
private |
|
Method Summary
Public Methods | ||
public |
dispose() |
|
public |
getGApiName(): * |
|
public |
|
|
public |
|
|
public |
modelMatrix(): mat4 get model matrix |
|
public |
popModelMatrix(): mat4 pop model matrix stack |
|
public |
popPMatrix(): mat4 pop projection matrix stack |
|
public |
popViewMatrix(): mat4 pop view matrix stack |
|
public |
push a matrix to the model matrix stack |
|
public |
push a matrix to the projection matrix stack |
|
public |
push a matrix to the view matrix stack |
|
public |
setAutoResize(parent: *) |
|
public |
setCanvas(canvEle: *) |
|
public |
setSize(w: *, h: *, ignorestyle: *) |
|
public |
|
Private Methods | ||
private |
|
|
private |
|
|
private |
|
|
private |
_startMatrixStacks(identTranslate: *, identTranslateView: *) |
Public Constructors
public constructor() source
Public Members
public DEPTH_COMPARE_FUNC_ALWAYS: number source
public DEPTH_COMPARE_FUNC_EQUAL: number source
public DEPTH_COMPARE_FUNC_GREATER: number source
public DEPTH_COMPARE_FUNC_GREATEREQUAL: number source
public DEPTH_COMPARE_FUNC_LESS: number source
public DEPTH_COMPARE_FUNC_LESSEQUAL: number source
public DEPTH_COMPARE_FUNC_NEVER: number source
public DEPTH_COMPARE_FUNC_NOTEQUAL: number source
public aborted: boolean source
public get canvas: * source
public get canvasHeight: * source
public canvasScale: number source
public get canvasWidth: * source
public cgCanvas: * source
public fpsCounter: * source
public patch: * source
public set pixelDensity source
public get pixelDensity: * source
Private Members
private _ident: * source
private _identView: * source
private _mMatrixStack: * source
private _pMatrixStack: * source
private _textureslots: *[] source
private _vMatrixStack: * source
Public Methods
public dispose() source
public pushModelMatrix() source
push a matrix to the model matrix stack
Example:
// see source code of translate op:
cgl.pushModelMatrix();
mat4.translate(cgl.mMatrix,cgl.mMatrix, vec);
trigger.trigger();
cgl.popModelMatrix();
public setAutoResize(parent: *) source
Params:
Name | Type | Attribute | Description |
parent | * |
public setCanvas(canvEle: *) source
Params:
Name | Type | Attribute | Description |
canvEle | * |
public setSize(w: *, h: *, ignorestyle: *) source
Params:
Name | Type | Attribute | Description |
w | * | ||
h | * | ||
ignorestyle | * |
public updateSize() source
Private Methods
private _endMatrixStacks() source
private _resizeToParentSize() source
private _resizeToWindowSize() source
private _startMatrixStacks(identTranslate: *, identTranslateView: *) source
Params:
Name | Type | Attribute | Description |
identTranslate | * | ||
identTranslateView | * |