
Posted:
Apr 11, 2003 @ 12:36am
by bob
2 things...
what does the code look like to restore the displays render target the default?
if you can use BlitTransform or something like that to display images in creative ways - blitting twice (esp if rotating or stretching) can be real slow. i tried it, im working on blitting rotated around a point (just a little trig, just gotta get around to it)

Posted:
Apr 11, 2003 @ 12:53am
by adde
what does the code look like to restore the displays render target the default?
You call SetRenderTarget(0) or SetRenderTarget(NULL) to restore rendering to the backbuffer.
Remember that SetRenderTarget() will return the old rendering target Surface, so this can be used if switching between targets.
if you can use BlitTransform or something like that to display images in creative ways - blitting twice (esp if rotating or stretching) can be real slow.
Yes.. We've had this discussion before and ultimately the combined rotater and blitter should only blit ONCE using BlitTransform with a combined transform matrix. It's just that noone has taken the time to do this.