SWORD2: Sprite drawing (incomplete)
|Reported by:||eriktorbjorn||Owned by:||SF/khalek|
|Game:||Broken Sword 2|
This patch adds preliminary support for sprite drawing in Broken Sword 2. The major thing that's missing is scaling, but it's still enough to look interesting in the demo. (I have yet to get the full version to run.)
I don't think DrawSprite() is quite the monster everyone has made it out to be. What makes the function so big is probably that the original has a graphics quality setting which. I think these are usually handled automagically by DirectX, but at least in DrawSprite() there are software fallbacks. (We should be able to get our scaling code from one of them.)
You'll notice that even the RDBLTFX_ALLHARDWARE case has two versions of the RDSPR_BLEND code. One to do proper blending, and one that just dithers. For now, I've simply ignored the latter.
Ticket imported from: #791032. Ticket imported from: patches/377.