The rotation on DrawBitmap seems to work fine as does the increase in size (thank you for that).
![icon_smile.gif](http://www.purezc.com/forums/public/style_emoticons/default/icon_smile.gif)
Is there any way to affect the pivot? Can you tell me how the pivot is computed given a destination position and size? Thanks.
I haven't tested rotation on DrawLayer() and DrawScreen() yet due to the other issues already mentioned. Is there a way of controlling how transparent pixels are treated for those functions?
Edit -
I should also mention that calling DrawLayer() has a much larger impact on performance then I would expect, at least when drawing into bitmaps. On the other hand DrawBitmap performance itself is great.
![icon_smile.gif](http://www.purezc.com/forums/public/style_emoticons/default/icon_smile.gif)
Here is my simple test:
CODE
Screen->SetRenderTarget( 6 );
{
Screen->Rectangle(0, 0, 0, 512, 512, 0, 1.0, 0, 0, 0, true, 128);
Screen->DrawLayer(0, 14, 51, 0, 0, 0, 0, 128);
Screen->DrawLayer(0, 14, 52, 0, 256, 0, 0, 128);
Screen->DrawLayer(0, 14, 67, 0, 0, 176, 0, 128);
Screen->DrawLayer(0, 14, 68, 0, 256, 176, 0, 128);
}
Screen->SetRenderTarget( -1 );
If I comment out the DrawLayer() commands but leave everything else as is the performance issue goes away completely. Or to be more technical, calling DrawLayer() 4 times is taking
64.5ms (unlocked framerate during testing, of course). Drawing those layers manually by calling DrawCombo will take a fraction of that time (probably around an order of magnitude difference). So I'm not sure what's going on there but I thought I'd bring it up.
Edited by blue_knight, 27 February 2012 - 02:42 AM.