I have been unable to locate any suitable documentation describing the relationship between several parameters in a PIXELFORMATDESCRIPTOR (PFD). Maybe someone here can answer a few questions in reference to the PFD fields …
typedef struct tag
PIXELFORMATDESCRIPTOR
{
WORD nSize;
WORD nVersion;
DWORD dwFlags;
BYTE iPixelType;
BYTE cColorBits;
BYTE cRedBits;
BYTE cRedShift;
BYTE cGreenBits;
BYTE cGreenShift;
BYTE cBlueBits;
BYTE cBlueShift;
BYTE cAlphaBits;
BYTE cAlphaShift;
BYTE cAccumBits;
BYTE cAccumRedBits;
BYTE cAccumGreenBits;
BYTE cAccumBlueBits;
BYTE cAccumAlphaBits;
BYTE cDepthBits;
BYTE cStencilBits;
BYTE cAuxBuffers;
BYTE iLayerType;
BYTE bReserved;
DWORD dwLayerMask;
DWORD dwVisibleMask;
DWORD dwDamageMask;
} PIXELFORMATDESCRIPTOR;
==================================================================
Question #1:
Ok, I understand that cAccumBits specifies the total number of
bitplanes in the accumulation buffer.
Given that, what is it’s relationship to cAccumRedBits,
cAccumGreenBits, cAccumBlueBits, and cAccumAlphaBits?
Must (cAccumRedBits+cAccumGreenBits+cAccumBlueBits+cAccumAlphaBits)=cAccumRedBits?
==================================================================
Question #2:
If that is the intended relationship then does the same apply to
cColorBits and cRedBits,cGreenBits,cBlueBits,cAlphaBits ?
==================================================================
Question #3:
Ok, cRedShift specifies the shift count for red bitplanes in each
RGBA color buffer.
So what the heck is a shift count and what is it used for?
Ditto for cGreenShift,cBlueShift, and cAlphaShift