1
0
Fork 0

Canvas: Add function to API for getting canvas path

This commit is contained in:
Thomas Geymayer 2012-08-09 22:08:44 +02:00
parent c785b1bd1c
commit a129877eb8

View file

@ -791,7 +791,12 @@ var Canvas = {
# Set the background color
#
# @param color Vector of 3 or 4 values in [0, 1]
setColorBackground: func { _setColorNodes(me.color, arg); return me; }
setColorBackground: func { _setColorNodes(me.color, arg); return me; },
# Get path of canvas to be used eg. in Image::setFile
getPath: func()
{
return "canvas://by-index/texture[" ~ me._node.getIndex() ~ "]";
}
};
# Create a new canvas. Pass parameters as hash, eg: