Archived

This topic is now archived and is closed to further replies.

Pyabo

DirectX Blt() question

Recommended Posts

Can you use Blt() on a DD surface where the source and destination overlap? Or that like a memcpy() where the result is undefined?

Share this post


Link to post
Share on other sites
I don''t know if that''s possible... usually you blit from an offscreen surface or some other surface not visible on the screen onto the primary buffer. If you wanted I guess you could bit from teh primary surfasce to the primary surface... I wouldn''t try it - but - your descision.

As far as I know you can overlap the blits.

Hope that helps,

Destroyer

Share this post


Link to post
Share on other sites
DDraw will buffer it for you so that you get the source as it was before you started the blit blitted over the destination.

Share this post


Link to post
Share on other sites
How sure are you furby? I have conflicting reports on this now... I dug up some newsgroup posts on Dejanews that say you shouldn''t blit overlapping regions because different hardware/drivers will perform differently. Haven''t got a definitive answer to this yet.

Share this post


Link to post
Share on other sites