Highlighting non-transparent pixels on DDraw7 surface
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?
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement