Highlighting non-transparent pixels on DDraw7 surface

Started by
1 comment, last by Zole 21 years, 2 months ago
I''m programming a game using DirectDraw 7 and I would like to highlight characters by turning their non-color keyed pixels white (or some other color). Is there a way to do this without essentially writing my own blt function?
Advertisement
No.

You have to lock and stare at each pixel. This can be a pain because surface formats might differ on different gfx cards but I''ve done it and it can be mighty fast.

(Actually in theory you could select every other color as the colorkey color and repeatedly blit a combined image onto a white surface).

Mark
can''t you just use a WHITENESS rop along with a colorkey override for the Blt call?

This topic is closed to new replies.

Advertisement