Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
CULL_MODES: undefined[] |
|
public |
DEPTH_FUNCS: undefined[] |
|
public |
aborted: boolean |
|
public |
checkGlErrors: boolean |
|
public |
clearCanvasDepth: boolean |
|
public |
clearCanvasTransparent: boolean |
|
public |
|
|
public |
debugOneFrame: boolean |
|
public |
frameStore: {} |
|
public |
gApi: * |
|
public |
gl: * |
|
public |
glRenderer: * |
|
public |
glSlowRenderer: boolean |
|
public |
glUseHalfFloatTex: boolean |
|
public |
glVersion: number |
|
public |
mMatrix: * |
|
public |
mainloopOp: * |
|
public |
maxAnisotropic: number |
|
public |
maxSamples: number |
|
public |
maxTexSize: * |
|
public |
maxTextureUnits: number |
|
public |
|
|
public |
|
|
public |
maxVaryingVectors: number |
|
public get |
mvMatrix: * |
|
public set |
|
|
public |
popMvMatrix: * |
|
public |
profileData: * |
|
public |
pushMvMatrix: * |
|
public |
|
|
public get |
viewPort: * |
Private Members | ||
private |
_currentCursor: string |
|
private |
|
|
private |
_cursor: string |
|
private |
|
|
private |
_frameBufferStack: *[] |
|
private |
_frameStarted: boolean |
|
private |
_glFrameBufferStack: *[] |
|
private |
_hadStackError: boolean |
|
private |
_isSafariCrap: boolean |
|
private |
_log: * |
|
private |
_loggedGlError: boolean |
|
private |
|
|
private |
|
|
private |
_onetimeCallbacks: *[] |
|
private |
_shaderStack: *[] |
|
private |
|
|
private |
_stackDepthTest: *[] |
|
private |
_viewPort: number[] |
|
private |
_viewPortStack: *[] |
Method Summary
Public Methods | ||
public |
checkFrameStarted(string: *) log warning to console if the rendering of one frame has not been started / handy to check for async problems |
|
public |
endFrame() |
|
public |
|
|
public |
get current framebuffer |
|
public |
getCurrentGlFrameBuffer(): Object get current framebuffer |
|
public |
getDefaultShader(): * |
|
public |
getInfo(): {"glVersion": *, "glRenderer": *, "glUseHalfFloatTex": *, "maxVaryingVectors": *, "maxTextureUnits": *, "maxTexSize": *, "maxUniformsFrag": *, "maxUniformsVert": *, "maxSamples": *} |
|
public |
getShader(): * |
|
public |
getTexture(slot: *): * |
|
public |
getViewPort(): * |
|
public |
hasFrameStarted(): * |
|
public |
logStackError(str: *) |
|
public |
pop framebuffer stack |
|
public |
popGlFrameBuffer(): Object pop framebuffer stack |
|
public |
|
|
public |
printError(str: *): * |
|
public |
push a framebuffer to the framebuffer stack |
|
public |
pushGlFrameBuffer(fb: Object) push a framebuffer to the framebuffer stack |
|
public |
pushShader(shader: Object) push a shader to the shader stack |
|
public |
pushViewPort(x: Number, y: Number, w: Number, h: Number) |
|
public |
renderEnd(cgl: *) |
|
public |
renderStart(cgl: *, identTranslate: *, identTranslateView: *) |
|
public |
|
|
public |
saveScreenshot(filename: *, cb: *, pw: *, ph: *, noclearalpha: *) |
|
public |
screenShot(cb: *, doScreenshotClearAlpha: *, mimeType: *, quality: *) |
|
public |
pop current used shader from shader stack |
|
public |
setTexture(slot: *, t: *, type: *): boolean |
|
public |
setViewPort(x: *, y: *, w: *, h: *) |
Private Methods | ||
private |
_dispose() |
|
private |
_setCanvas(canv: *) |
Inherited Summary
From class CGState | ||
public get |
canvas: * |
|
public get |
canvasHeight: * |
|
public get |
canvasWidth: * |
|
public get |
pixelDensity: * |
|
public set |
|
|
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 |
autoReSize: boolean |
|
public |
canvasScale: number |
|
public |
cgCanvas: * |
|
public |
fpsCounter: * |
|
public |
frameStore: * |
|
public |
mMatrix: mat4 Current model matrix |
|
public |
pMatrix: mat4 Current projection matrix |
|
public |
patch: * |
|
public |
vMatrix: mat4 Current view matrix |
|
private |
_ident: * |
|
private |
_identView: * |
|
private |
|
|
private |
|
|
private |
_textureslots: *[] |
|
private |
|
|
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 |
shouldDrawHelpers(): boolean |
|
public |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
_startMatrixStacks(identTranslate: *, identTranslateView: *) |
Public Constructors
Public Members
public CULL_MODES: undefined[] source
public DEPTH_FUNCS: undefined[] source
public checkGlErrors: boolean source
public clearCanvasDepth: boolean source
public clearCanvasTransparent: boolean source
public currentProgram: * source
public debugOneFrame: boolean source
public gApi: * source
public gl: * source
public glRenderer: * source
public glSlowRenderer: boolean source
public glUseHalfFloatTex: boolean source
public glVersion: number source
public mainloopOp: * source
public maxAnisotropic: number source
public maxSamples: number source
public maxTexSize: * source
public maxTextureUnits: number source
public maxUniformsFrag: * source
public maxUniformsVert: * source
public maxVaryingVectors: number source
public get mvMatrix: * source
public set mvMatrix source
public popMvMatrix: * source
public profileData: * source
public pushMvMatrix: * source
public temporaryTexture: * source
public get viewPort: * source
Private Members
private _currentCursor: string source
private _currentShader: * source
private _cursor: string source
private _enabledExtensions: {} source
private _frameBufferStack: *[] source
private _frameStarted: boolean source
private _glFrameBufferStack: *[] source
private _hadStackError: boolean source
private _isSafariCrap: boolean source
private _log: * source
private _loggedGlError: boolean source
private _oldCanvasHeight: * source
private _oldCanvasWidth: * source
private _onetimeCallbacks: *[] source
private _shaderStack: *[] source
private _simpleShader: * source
private _stackDepthTest: *[] source
private _viewPort: number[] source
private _viewPortStack: *[] source
Public Methods
public checkFrameStarted(string: *) source
log warning to console if the rendering of one frame has not been started / handy to check for async problems
Params:
Name | Type | Attribute | Description |
string | * |
public endFrame() source
public fullScreen() source
public getCurrentGlFrameBuffer(): Object source
get current framebuffer
Return:
Object | current framebuffer or null |
public getInfo(): {"glVersion": *, "glRenderer": *, "glUseHalfFloatTex": *, "maxVaryingVectors": *, "maxTextureUnits": *, "maxTexSize": *, "maxUniformsFrag": *, "maxUniformsVert": *, "maxSamples": *} source
Return:
{"glVersion": *, "glRenderer": *, "glUseHalfFloatTex": *, "maxVaryingVectors": *, "maxTextureUnits": *, "maxTexSize": *, "maxUniformsFrag": *, "maxUniformsVert": *, "maxSamples": *} |
public logStackError(str: *) source
Params:
Name | Type | Attribute | Description |
str | * |
public popGlFrameBuffer(): Object source
pop framebuffer stack
Return:
Object | current framebuffer or null |
public popViewPort() source
public pushFrameBuffer(fb: Framebuffer) source
push a framebuffer to the framebuffer stack
Params:
Name | Type | Attribute | Description |
fb | Framebuffer | framebuffer |
public pushGlFrameBuffer(fb: Object) source
push a framebuffer to the framebuffer stack
Params:
Name | Type | Attribute | Description |
fb | Object | framebuffer |
public pushShader(shader: Object) source
push a shader to the shader stack
Params:
Name | Type | Attribute | Description |
shader | Object |
public pushViewPort(x: Number, y: Number, w: Number, h: Number) source
Params:
Name | Type | Attribute | Description |
x | Number | ||
y | Number | ||
w | Number | ||
h | Number |
public renderEnd(cgl: *) source
Params:
Name | Type | Attribute | Description |
cgl | * |
public renderStart(cgl: *, identTranslate: *, identTranslateView: *) source
Params:
Name | Type | Attribute | Description |
cgl | * | ||
identTranslate | * | ||
identTranslateView | * |
public resetViewPort() source
public saveScreenshot(filename: *, cb: *, pw: *, ph: *, noclearalpha: *) source
Params:
Name | Type | Attribute | Description |
filename | * | ||
cb | * | ||
pw | * | ||
ph | * | ||
noclearalpha | * |
public screenShot(cb: *, doScreenshotClearAlpha: *, mimeType: *, quality: *) source
Params:
Name | Type | Attribute | Description |
cb | * | ||
doScreenshotClearAlpha | * | ||
mimeType | * | ||
quality | * |
public setTexture(slot: *, t: *, type: *): boolean source
Params:
Name | Type | Attribute | Description |
slot | * | ||
t | * | ||
type | * |
Return:
boolean |
public setViewPort(x: *, y: *, w: *, h: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
w | * | ||
h | * |
Private Methods
private _dispose() source
private _setCanvas(canv: *) source
Params:
Name | Type | Attribute | Description |
canv | * |