Package com.ms.com.directX |
|
 Previous |
 Microsoft Packages |
 Index |
 Next |
Class ddSurfaceDesc
public final class ddSurfaceDesc {
public int dwSize;
public int dwFlags;
public int height;
public int width;
public int pitch;
public int BackBufferCount;
public int CountDepthRate;
public int AlphaBitDepth;
public int dwReserved;
public int lpSurface;
public int CKDestOverlayLow;
public int CKDestOverlayHigh;
public int CKDestBltLow;
public int CKDestBltHigh;
public int CKSrcOverlayLow;
public int CKSrcOverlayHigh;
public int CKSrcBltLow;
public int CKSrcBltHigh;
public int dwPFSize;
public int pfFlags;
public int fourCC;
public int pfFlags;
public int count;
public int red_u_mask;
public int green_u_mask;
public int blue_v_mask;
public int alpha_channel_mask;
public int ddsCaps;
}
Contains a description of the surface to be created. This class is passed to the CreateSurface method. The relevant fields differ for each potential type of surface.
Fields
- dwSize
- Size, in bytes, of this class.
- dwFlags
- One or more values of DDSD_ type.
- height
- Height of surface.
- width
- Width of input surface.
- pitch
- Distance to start of next line (return value only).
- BackBufferCount
- Number of back buffers.
- CountDepthRate
- Depending on flags field, specifies one of these values:
- Number of mipmap levels.
- Depth of z-buffer.
- Refresh rate (used when the display mode is described).
- AlphaBitDepth
- Depth of alpha buffer.
- dwReserved
- reserved; must be 0.
- lpSurface
- Identifier for the surface memory.
- CKDestOverlayLow and CKDestOverlayHigh
- Color key for destination overlay use.
- CKDestBltLow and CKDestBltHigh
- Color key for destination blit use.
- CKSrcOverlayLow and CKSrcOverlayHigh
- Color key for source overlay use.
- CKSrcBltLow and CKSrcBltHigh
- Color key for source blit use.
- dwPFSize
- Size, in bytes, of this class.
- pfFlags
- One or more values of DDPF_ type.
- fourCC
- FourCC code.
- count
- Depending on pfFlags, this field specifies one of these values:
- RGB bits per pixel (4, 8, 16, 24, or 32),
- YUV bits per pixel (DDBD_4, DDBD_8, DDBD_16, DDBD_24, or DDBD_32),
- Z-buffer bit depth (8, 16, 24, or 32)
- Alpha channel bit depth (DDBD_1, DDBD_2, DDBD_4, or DDBD_8)
- red_u_mask
- Mask for red bits or Y bits.
- green_u_mask
- Mask for green bits or U bits.
- blue_v_mask
- Mask for blue bits or V bits.
- alpha_channel_mask
- Mask for alpha channel.
- ddsCaps
- One or more values of DDSCAPS_ type specifying DirectDraw surface capabilities.