Hi all,

I know there is a way to make a color of a texture transparent
but is there any way to make a color of a surface transparent?

I have two surfaces one overlaid on the other and I would like the program to have areas of the overlaid surface to be transparent.

I am using:
g_hResult = D3DXLoadSurfaceFromFile(g_pBitmapSurface, NULL, NULL, "image.bmp", NULL, D3DX_DEFAULT, 0xFF000000, NULL);

The second last parameter is the color key, which is usually 0, and I thought changing it from 0 to 0xFF000000 would make the color black of the suface transparent.

Is there any enabling of transparency or setting up i have to do first?

Can any one help me, I am new to the Direct3D stuff