Overview Members Chapter Previous Next

CDXSurface::LoadAlphaMask

BOOL LoadAlphaMask( const char* szFilename ) ;

This function can be used to load an alpha mask for your surface. The file format that this function expects is:

<width><height><alpha values>

 width        : must match the width of the surface, 4 bytes long (DWORD)
 height       : must match the height of the surface, 4 bytes long (DWORD)
 alpha values : must be width*height bytes long. One byte value (0..255)
               for each pixel on the surface.