Feature request: GrabImage and anims
Monkey Forums/Monkey Bug Reports/Feature request: GrabImage and anims
| ||
The private Grab method in images currently only works with horizontal strips of frames. I might be reading this wrong, but if line 169 of graphics.monkey were changed from ix=0 to ix=x wouldn't Image.GrabImage start working for non-horizontal sets of frames? Seems like a tiny change that could have some utility in dealing with texture atlases. |
| ||
I AM reading it wrong. :P You'd need to pass in an overall width and height as well since it bounds against the source texture width. |
| ||
Hmm, another thought I had as a workaround was first grabbing the sheet out of the atlas, then grabbing from THAT image, passing in frames. But there's a check for frames not being 1 that prevents that too. :) |