Hi guys,
I have a situation that bothers me lately. Im trying to achieve rescalable rounded box (lots of them) by replicating 4 corners from texture
So far by looking at the manuals the only way is to use TextureRegion, but this gives me 8 bitmaps to parent on another sprite. All of them still lives in memory as a separated class objects which, I assume, is memory and cpu consuming. In love2d you can create a new canvas, draw multiple textures and save it in memory so it counts as a single new texture.
Comments
Likes: oleg
https://deluxepixel.com
Likes: SinisterSoft, oleg
@gemboy100 : If you can't find it let me know and I'll dig it up and repost here.
https://deluxepixel.com
http://forum.giderosmobile.com/discussion/7380/slice9-class#latest
You also posted there, a method using setTextureCoordinateArray
Im looking at it right now, trying to understand it
Likes: oleg
Likes: antix, oleg
@hgy29
thanks,
I think this would be much easier if there were additional parameters to RenderTarget:draw(x,y, w,h) so we can actually target what to draw
Likes: pie, antix
Likes: gemboy100
https://deluxepixel.com
so this saved me couple of lines and its much easier to write
Likes: SinisterSoft
http://wiki.giderosmobile.com/index.php/Special:MyLanguage/TextureRegion:setRegion
Likes: Apollo14
https://deluxepixel.com
Likes: Apollo14, keszegh
https://deluxepixel.com
Fragmenter - animated loop machine and IKONOMIKON - the memory game
It actually has all the tools but very little guides on this matter (or Im missing something again(or it is hard to find it)). Currently I don't care speed as I only use it to create new level, but if I would, what do you think, what is approximate performance I could achieve
I assume, thats the lowest level Gideros can touch considering drawing on screen.
Likes: antix
https://deluxepixel.com