🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
16 bit color and ddbltfx
Could you use?
red = ff0000h
blue = 00ff00h
green = 0000ffh
would that be the same as using the rgb macro? I have never tried it before because I don't use dx's color fill.
You should always check the pixelformat of your surface(s) using
IDirecrDrawSurface::GetPixelFormat
If you don't, your colors could be messed up on other video cards.
(That was a problem i had, not long ago)
IDirecrDrawSurface::GetPixelFormat
If you don't, your colors could be messed up on other video cards.
(That was a problem i had, not long ago)
SeeYa...
I'm doing a colorfill for a certain region, so I call the Blt function and pass the ddbltfx structure. But how do I get the color I want for ddbltfx.dwFillColor.
For example, what value do I pass to dwFillColor to get pure red, or pure green, or pure blue? (I'm new with 16 bit color)Thanks for your help.
Melo is right: use the dwPixelFormat. The RGB macro won't work on some systems (it doesn't work on my TNT ) and the ff0000, 00ff00, and 0000ff won't work either, for the same reason.
------------------
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement