Class Index | File Index

Classes


Class createjs.WebGLRenderer.Rectangle


Defined in: webgl_renderer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.WebGLRenderer.Rectangle(context, program, key, width, height)
An inner class that encapsulates a rectangle used by this renderer.
Method Summary
Method Attributes Method Name and Description
 
bindContext(context)
Binds this rectangle to the specified context.
 
destroy(context)
Deletes all resources used by this rectangle.
 
set(x, y, width, height)
Sets this rectangle.
Class Detail
createjs.WebGLRenderer.Rectangle(context, program, key, width, height)
An inner class that encapsulates a rectangle used by this renderer. This renderer uses a couple of triangles (0,0)-(width,0)-(0,height) and (width,0)-(0,height)-(width,height) to represent a rectangle. (0,0) +--+ (width,0) | /| |/ | (0,height) +--+ (width,height)
Parameters:
{createjs.WebGLRenderer.Context} context
{WebGLProgram} program
{string} key
{number} width
{number} height
Method Detail
bindContext(context)
Binds this rectangle to the specified context.
Parameters:
{createjs.WebGLRenderer.Context} context

destroy(context)
Deletes all resources used by this rectangle.
Parameters:
{createjs.WebGLRenderer.Context} context

set(x, y, width, height)
Sets this rectangle.
Parameters:
{number} x
{number} y
{number} width
{number} height

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