DirectX SDK |
The ID3DXContext::GetNumBits method returns values describing the pixel format of the DirectDrawSurface objects encapsulated by a context object.
HRESULT GetNumBits( LPDWORD colorBits, LPDWORD depthBits, LPDWORD alphaBits, LPDWORD stencilBits );
This method returns S_OK.
The stencilBits parameter specifies how many bits are reserved with each pixel of the z-buffer for stencil information.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Version: Requires DirectX 7.0.
Header: Declared in d3dxcore.h.
Library: Use d3dx.lib.