Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Destination Colour Keys == Evil

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 WORF   Members   

112
Like
Likes
Like

Posted 06 December 1999 - 07:16 PM

I have a theory that destination color keys hate me. This left me wondering if destination color keys are hardware dependent. I have gotten source color keys up and working no problem, but a blt with a DDBLT_KEYDEST flag always fails. I'm setting the color key like thus:

DDCOLORKEY ddck;

memset((DDCOLORKEY*)&ddck, 0, sizeof(ddck));

ddck.dwColorSpaceHighValue = RGB16(0,0,0);
ddck.dwColorSpaceLowValue = RGB16(0,0,0);

ddsFont->SetColorKey(DDCKEY_DESTBLT, &ddck);

Any ideas?

Thanks.

P.S. I'm not sure if this message board inputs linefeeds for me or if I need br tags. Sorry if the formatting is messed up


#2 Bracket   Members   

240
Like
Likes
Like

Posted 06 December 1999 - 07:16 PM

I seem to recall it mentioning in La Mothe's book (Tricks of the windows game programming gurus) that destination colour keying isn't supported in software - and that a lot of cards don't support it. He suggests sticking with source colour keying (even though destination colour keying is pretty neat).




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.