Class Index | File Index

Classes


Class createjs.WebGLRenderer


Extends .

Defined in: webgl_renderer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.WebGLRenderer(canvas, context, viewport)
A class that implements the createjs.Renderer interface with the WebGL API.
Field Summary
Field Attributes Field Name and Description
<static>  
createjs.WebGLRenderer.context
The context name for retrieving a WebGLRenderingContext object.
<static>  
createjs.WebGLRenderer.gl
Constants used by WebGL.
<static>  
createjs.WebGLRenderer.id
An ID assigned to createjs.WebGLRenderer.Context objects.
Method Summary
Method Attributes Method Name and Description
 
addObject(object)
 
 
 
drawCanvas(canvas, x, y, width, height)
 
drawPartial(image, srcX, srcY, srcWidth, srcHeight, x, y, width, height)
 
drawVideo(video, x, y, width, height)
 
 
handleEvent(event)
 
paint(time)
 
setAlpha(alpha)
 
 
setComposition(operation)
 
setTransformation(a, b, c, d, tx, ty)
 
uncache(image)
Class Detail
createjs.WebGLRenderer(canvas, context, viewport)
A class that implements the createjs.Renderer interface with the WebGL API.
Parameters:
{HTMLCanvasElement} canvas
{Object} context
{createjs.BoundingBox} viewport
Field Detail
<static> createjs.WebGLRenderer.context
The context name for retrieving a WebGLRenderingContext object.

<static> createjs.WebGLRenderer.gl
Constants used by WebGL. These constants are copied from the WebGLRenderingContext interface so the closure compiler can inline them. (Although it is dirty to use numbers, it is faster to use numbers than to read object properties.)

<static> createjs.WebGLRenderer.id
An ID assigned to createjs.WebGLRenderer.Context objects.
Method Detail
addObject(object)
Parameters:
object

begin()

destroy()

drawCanvas(canvas, x, y, width, height)
Parameters:
canvas
x
y
width
height

drawPartial(image, srcX, srcY, srcWidth, srcHeight, x, y, width, height)
Parameters:
image
srcX
srcY
srcWidth
srcHeight
x
y
width
height

drawVideo(video, x, y, width, height)
Parameters:
video
x
y
width
height

getExtensions()

handleEvent(event)
Parameters:
event

paint(time)
Parameters:
time

setAlpha(alpha)
Parameters:
alpha

setColorMatrix(matrix)
Parameters:
matrix

setComposition(operation)
Parameters:
operation

setTransformation(a, b, c, d, tx, ty)
Parameters:
a
b
c
d
tx
ty

uncache(image)
Parameters:
image

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 04 2016 17:11:29 GMT+0900 (JST)