Enabled the Surface's normalStage and all its layers.

This commit is contained in:
Scott Erickson 2014-09-26 12:45:27 -07:00
parent c1e7423a64
commit 37e9d7bb2d

View file

@ -105,7 +105,7 @@ module.exports = Surface = class Surface extends CocoClass
@normalLayers.push @screenLayer = new Layer name: 'Screen', layerPriority: 3, transform: Layer.TRANSFORM_SCREEN, camera: @camera
@normalLayers.push @cameraBorderLayer = new Layer name: 'Camera Border', layerPriority: 4, transform: Layer.TRANSFORM_SURFACE, camera: @camera
@cameraBorderLayer.addChild @cameraBorder = new CameraBorder(bounds: @camera.bounds)
@normalStage.addChild @normalLayers...
@normalStage.addChild (layer.container for layer in @normalLayers)...
canvasWidth = parseInt @normalCanvas.attr('width'), 10
canvasHeight = parseInt @normalCanvas.attr('height'), 10
@ -234,7 +234,7 @@ module.exports = Surface = class Surface extends CocoClass
drawCurrentFrame: (e) ->
++@totalFramesDrawn
# @normalStage.update e
@normalStage.update e
@webGLStage.update e