Comment #2 on issue 118 by heuermh: PCanvas.getLayer() is misleading http://code.google.com/p/piccolo2d/issues/detail?id=118
I thought the same and didn't include getLayer() in POffscreenCanvas. It is a nice bit of sugar though, and a nice conceptual shortcut as well. One typically adds child nodes either to the camera (for "sticky" nodes) or to the layer (for typical behavior). I was thinking of adding it, with sufficient documentation, and suggest we leave it in PCanvas, with improvement to the documentation: /** * Return the layer for this canvas, that is the first layer * in the list of layers viewed by the camera associated with * this canvas. Note that the camera associated with this * canvas may view more than one layer. * * @see PCamera#getLayer(int) * @return the layer for this canvas */ public PLayer getLayer() -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en -~----------~----~----~----~------~----~------~--~---
