I would like to suggest/request that there should be some more functionality in RenderTarget so you can opt to clear a rectangular area of the RenderTarget. Maybe a new method called RenderTarget:clearRect(x1, y1, x2, y2, color, alpha)
Only being able to clear the entire thing imposes nasty limitations on RenderTargets.
In theory it should be easy to implement since you can already clear the entire RenderTarget.
Comments
Can you add a feature request (issue) on github about that ?
Likes: antix
Likes: antix
Fragmenter - animated loop machine and IKONOMIKON - the memory game
https://deluxepixel.com
http://docs.giderosmobile.com/reference/gideros/RenderTarget/clear#RenderTarget:clear
Likes: antix
https://deluxepixel.com
In the following code when I load my backdrop image I want the 128x128 sized area at location 0,128 of the RenderTarget to be cleared. Instead the whole thing is still being cleared.
Likes: rolfpancake
Likes: SinisterSoft
Likes: antix
https://deluxepixel.com