Class Index | File Index

Classes


Class Viewport


Defined in: Viewport.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Viewport(canvas, camera)
Method Summary
Method Attributes Method Name and Description
 
addTime(time)
 
 
 
invokeKeyUp(event)
 
 
invokeMouseDrag(event, pressedKeys, diffX, diffY)
 
invokeMouseMove(event, diffX, diffY)
 
 
 
setCamera(camera)
 
setCanvas(canvas)
 
setDimension(x, y, width, height)
Class Detail
Viewport(canvas, camera)
Parameters:
canvas
camera
Method Detail
addTime(time)
Parameters:
time

invokeKeyDown(event)
Parameters:
event

invokeKeyPress(event)
Parameters:
event

invokeKeyUp(event)
Parameters:
event

invokeMouseDown(event)
Parameters:
event

invokeMouseDrag(event, pressedKeys, diffX, diffY)
Parameters:
event
pressedKeys
diffX
diffY

invokeMouseMove(event, diffX, diffY)
Parameters:
event
diffX
diffY

invokeMouseUp(event)
Parameters:
event

invokeMouseWheel(delta)
Parameters:
delta

setCamera(camera)
Parameters:
camera

setCanvas(canvas)
Parameters:
canvas
Returns:

setDimension(x, y, width, height)
Parameters:
x
y
width
height

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Jun 09 2013 12:38:12 GMT+0200 (CEST)