Type Function Object TextureResourceCanvas Library graphics.* Revision 2017.3060 See also TextureResource TextureResourceCanvas texture:draw()
This method schedules display objects queued for rendering via texture:draw() to be rendered to the texture before the next frame.
texture:invalidate( [params] )
String or Table. If specified, one of the following options are valid. If omitted, accumulative rendering of objects from the rendering queue occurs.
"cache"
to clear the texture and subsequently render objects from the cache to the texture:texture:invalidate( "cache" )
source
and accumulate
. This switches off accumulative rendering and uses the cache as the source for rendering to the texture.texture:invalidate( { source="cache", accumulate=false } )