Class Index | File Index

Classes


Class VENISON.GRAPHICS.Camera

A camera, responsible for drawing entities to a canvas.
Defined in: venison_engine.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
VENISON.GRAPHICS.Camera(iCanvas, iUseWebGL2D)
Field Summary
Field Attributes Field Name and Description
 
Boolean used to tell the camera to render various debug information.
 
Boolean used to tell the camera to render entities or not.
 
The cameras transformation.
Method Summary
Method Attributes Method Name and Description
 
Get the 2D context this camera uses for rendering.
 
Transform a document position into world coordinates.
Class Detail
VENISON.GRAPHICS.Camera(iCanvas, iUseWebGL2D)
Parameters:
{Object} iCanvas
The canvas element that this camera should use for rendering.
{Boolean} iUseWebGL2D
If set to any non-false value, the experimental WebGL2D will be used for rendering, if the browser supports WebGL.
Field Detail
{Boolean} renderDebugInfo
Boolean used to tell the camera to render various debug information.

{Boolean} renderGraphics
Boolean used to tell the camera to render entities or not.

{VENISON.UTILITIES.Transformation} transformation
The cameras transformation.
Method Detail
{Object} fnGetContext()
Get the 2D context this camera uses for rendering.
Returns:
{Object} The 2D context.

{VENISON.UTILITIES.Vector2} fnTransformDocumentPositionToWorld(iDocPos)
Transform a document position into world coordinates.
Parameters:
{Object} iDocPos
The document position.
Returns:
{VENISON.UTILITIES.Vector2} The position in world space.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 05 2011 18:47:28 GMT+0200 (CEST)