Class Index | File Index

Classes


Class createjs.WebGLRenderer.Program


Defined in: webgl_renderer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.WebGLRenderer.Program(context, scaleX, scaleY)
An inner class that encapsulates the shader program and its parameters used by this renderer.
Method Summary
Method Attributes Method Name and Description
 
cache(image)
Creates a cache texture for the specified image and attaches it to the image.
 
destroy(context)
Deletes the resources owned by this program.
 
drawImage(image, x, y, width, height)
Draws the specified image.
 
drawPartial(image, srcX, srcY, srcWidth, srcHeight, x, y, width, height)
Draws the specified part of an image.
 
setAlpha(alpha)
Sets the alpha value.
 
Sets the color matrix used by the color-matrix filter.
 
setComposition(operation)
Sets the composition value.
 
setTransform(a, b, c, d, tx, ty)
Sets the specified transform.
 
uncache(image)
Deletes the cache texture attached to the specified image.
Class Detail
createjs.WebGLRenderer.Program(context, scaleX, scaleY)
An inner class that encapsulates the shader program and its parameters used by this renderer.
Parameters:
{createjs.WebGLRenderer.Context} context
{number} scaleX
{number} scaleY
Method Detail
{boolean} cache(image)
Creates a cache texture for the specified image and attaches it to the image.
Parameters:
{HTMLImageElement|HTMLCanvasElement|HTMLVideoElement} image
Returns:
{boolean}

destroy(context)
Deletes the resources owned by this program.
Parameters:
{createjs.WebGLRenderer.Context} context

drawImage(image, x, y, width, height)
Draws the specified image.
Parameters:
{HTMLImageElement|HTMLCanvasElement|HTMLVideoElement} image
{number} x
{number} y
{number} width
{number} height

drawPartial(image, srcX, srcY, srcWidth, srcHeight, x, y, width, height)
Draws the specified part of an image.
Parameters:
{HTMLImageElement|HTMLCanvasElement} image
{number} srcX
{number} srcY
{number} srcWidth
{number} srcHeight
{number} x
{number} y
{number} width
{number} height

setAlpha(alpha)
Sets the alpha value.
Parameters:
{number} alpha

setColorMatrix(matrix)
Sets the color matrix used by the color-matrix filter.
Parameters:
{Array.} matrix

setComposition(operation)
Sets the composition value.
Parameters:
{number} operation

setTransform(a, b, c, d, tx, ty)
Sets the specified transform.
Parameters:
{number} a
{number} b
{number} c
{number} d
{number} tx
{number} ty

uncache(image)
Deletes the cache texture attached to the specified image.
Parameters:
{HTMLImageElement|HTMLCanvasElement|HTMLVideoElement} image

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