Post

 Resources 

Console


RE: D3D color key Adam Hoult (0 replies, 0 views) (2000-May-9)
-
Hmm you should be able to call SetRenderState with the D3DRENDERSTATE_COLORKEYENABLE flag set to true. When color-keyed transparency is enabled, only texture surfaces that were created with the DDSD_CKSRCBLT flag are affected. So what does this mean ?? Well it should be a simple case of loading your texture surface with the DDSD_CKSRCBLT flag in your DDSURFACEDESC2 structure and applying your colour key to your texture surface as normal (i.e the standard MYSURFACE.SETCOLORKEY way =), and setting this renderstate flag to true. This is all in the SDK Docs, so if you need more help, take a quick peek under the results for Colorkey. HTH Adam


-
Up One Level | Back to Forum


Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 39 visitors within the last 20 minutes
RSS News Feed