• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1        <type>struct <name>_POINTFLOAT</name> {
2    FLOAT x;
3    FLOAT y;
4};</type>
5        <type>typedef struct _POINTFLOAT <name>POINTFLOAT</name>;</type>
6        <type>typedef struct _POINTFLOAT *<name>PPOINTFLOAT</name>;</type>
7        <type requires="POINTFLOAT">struct <name>_GLYPHMETRICSFLOAT</name> {
8    FLOAT      gmfBlackBoxX;
9    FLOAT      gmfBlackBoxY;
10    POINTFLOAT gmfptGlyphOrigin;
11    FLOAT      gmfCellIncX;
12    FLOAT      gmfCellIncY;
13};</type>
14        <type requires="_GLYPHMETRICSFLOAT">typedef struct _GLYPHMETRICSFLOAT <name>GLYPHMETRICSFLOAT</name>;</type>
15        <type requires="_GLYPHMETRICSFLOAT">typedef struct _GLYPHMETRICSFLOAT *<name>PGLYPHMETRICSFLOAT</name>;</type>
16
17typedef struct tagPIXELFORMATDESCRIPTOR {
18  WORD  nSize;
19  WORD  nVersion;
20  DWORD dwFlags;
21  BYTE  iPixelType;
22  BYTE  cColorBits;
23  BYTE  cRedBits;
24  BYTE  cRedShift;
25  BYTE  cGreenBits;
26  BYTE  cGreenShift;
27  BYTE  cBlueBits;
28  BYTE  cBlueShift;
29  BYTE  cAlphaBits;
30  BYTE  cAlphaShift;
31  BYTE  cAccumBits;
32  BYTE  cAccumRedBits;
33  BYTE  cAccumGreenBits;
34  BYTE  cAccumBlueBits;
35  BYTE  cAccumAlphaBits;
36  BYTE  cDepthBits;
37  BYTE  cStencilBits;
38  BYTE  cAuxBuffers;
39  BYTE  iLayerType;
40  BYTE  bReserved;
41  DWORD dwLayerMask;
42  DWORD dwVisibleMask;
43  DWORD dwDamageMask;
44} PIXELFORMATDESCRIPTOR, *PPIXELFORMATDESCRIPTOR;
45
46PFD_DRAW_TO_WINDOW      The buffer can draw to a window or device surface.
47PFD_DRAW_TO_BITMAP      The buffer can draw to a memory bitmap.
48PFD_SUPPORT_GDI The buffer supports GDI drawing. This flag and PFD_DOUBLEBUFFER are mutually exclusive in the current generic implementation.
49PFD_SUPPORT_OPENGL      The buffer supports OpenGL drawing.
50PFD_GENERIC_ACCELERATED The pixel format is supported by a device driver that accelerates the generic implementation. If this flag is clear and the PFD_GENERIC_FORMAT flag is set, the pixel format is supported by the generic implementation only.
51PFD_GENERIC_FORMAT      The pixel format is supported by the GDI software implementation, which is also known as the generic implementation. If this bit is clear, the pixel format is supported by a device driver or hardware.
52PFD_NEED_PALETTE        The buffer uses RGBA pixels on a palette-managed device. A logical palette is required to achieve the best results for this pixel type. Colors in the palette should be specified according to the values of the cRedBits, cRedShift, cGreenBits, cGreenShift, cBluebits, and cBlueShift members. The palette should be created and realized in the device context before calling wglMakeCurrent.
53PFD_NEED_SYSTEM_PALETTE Defined in the pixel format descriptors of hardware that supports one hardware palette in 256-color mode only. For such systems to use hardware acceleration, the hardware palette must be in a fixed order (for example, 3-3-2) when in RGBA mode or must match the logical palette when in color-index mode.
54PFD_DOUBLEBUFFER        The buffer is double-buffered. This flag and PFD_SUPPORT_GDI are mutually exclusive in the current generic implementation.
55PFD_STEREO      The buffer is stereoscopic. This flag is not supported in the current generic implementation.
56PFD_SWAP_LAYER_BUFFERS  Indicates whether a device can swap individual layer planes with pixel formats that include double-buffered overlay or underlay planes. Otherwise all layer planes are swapped together as a group. When this flag is set, wglSwapLayerBuffers is supported.
57PFD_DEPTH_DONTCARE      The requested pixel format can either have or not have a depth buffer. To select a pixel format without a depth buffer, you must specify this flag. The requested pixel format can be with or without a depth buffer. Otherwise, only pixel formats with a depth buffer are considered.
58PFD_DOUBLEBUFFER_DONTCARE       The requested pixel format can be either single- or double-buffered.
59PFD_STEREO_DONTCARE     The requested pixel format can be either monoscopic or stereoscopic.
60PFD_SWAP_COPY   Specifies the content of the back buffer in the double-buffered main color plane following a buffer swap. Swapping the color buffers causes the content of the back buffer to be copied to the front buffer. The content of the back buffer is not affected by the swap. PFD_SWAP_COPY is a hint only and might not be provided by a driver.
61PFD_SWAP_EXCHANGE       Specifies the content of the back buffer in the double-buffered main color plane following a buffer swap. Swapping the color buffers causes the exchange of the back buffer's content with the front buffer's content. Following the swap, the back buffer's content contains the front buffer's content before the swap. PFD_SWAP_EXCHANGE is a hint only and might not be provided by a driver.
62PFD_TYPE_RGBA   RGBA pixels. Each pixel has four components in this order: red, green, blue, and alpha.
63PFD_TYPE_COLORINDEX     Color-index pixels. Each pixel uses a color-index value.
64typedef struct tag_LAYERPLANEDESCRIPTOR {
65  WORD     nSize;
66  WORD     nVersion;
67  DWORD    dwFlags;
68  BYTE     iPixelType;
69  BYTE     cColorBits;
70  BYTE     cRedBits;
71  BYTE     cRedShift;
72  BYTE     cGreenBits;
73  BYTE     cGreenShift;
74  BYTE     cBlueBits;
75  BYTE     cBlueShift;
76  BYTE     cAlphaBits;
77  BYTE     cAlphaShift;
78  BYTE     cAccumBits;
79  BYTE     cAccumRedBits;
80  BYTE     cAccumGreenBits;
81  BYTE     cAccumBlueBits;
82  BYTE     cAccumAlphaBits;
83  BYTE     cDepthBits;
84  BYTE     cStencilBits;
85  BYTE     cAuxBuffers;
86  BYTE     iLayerType;
87  BYTE     bReserved;
88  COLORREF crTransparent;
89} LAYERPLANEDESCRIPTOR, *PLAYERPLANEDESCRIPTOR;
90LPD_SUPPORT_OPENGL      The layer plane supports OpenGL drawing.
91LPD_SUPPORT_GDI The layer plane supports GDI drawing. The current implementation of OpenGL doesn't support this flag.
92LPD_DOUBLEBUFFER        The layer plane is double-buffered. A layer plane can be double-buffered even when the main plane is single-buffered and vice versa.
93LPD_STEREO      The layer plane is stereoscopic. A layer plane can be stereoscopic even when the main plane is monoscopic and vice versa.
94LPD_SWAP_EXCHANGE       In a double-buffered layer plane, swapping the color buffer exchanges the front buffer and back buffer contents. The back buffer then contains the contents of the front buffer before the swap. This flag is a hint only and might not be provided by a driver.
95LPD_SWAP_COPY   In a double-buffered layer plane, swapping the color buffer copies the back buffer contents to the front buffer. The swap does not affect the back buffer contents. This flag is a hint only and might not be provided by a driver.
96LPD_TRANSPARENT The crTransparent member of this structure contains a transparent color or index value that enables underlying layers to show through this layer. All layer planes, except the lowest-numbered underlay layer, have a transparent color or index.
97LPD_SHARE_DEPTH The layer plane shares the depth buffer with the main plane.
98LPD_SHARE_STENCIL       The layer plane shares the stencil buffer with the main plane.
99LPD_SHARE_ACCUM The layer plane shares the accumulation buffer with the main plane.
100
101iPixelType
102Specifies the type of pixel data. The following types are defined.
103Value   Meaning
104LPD_TYPE_RGBA   RGBA pixels. Each pixel has four components: red, green, blue, and alpha.
105LPD_TYPE_COLORINDEX     Color-index pixels. Each pixel uses a color-index value.
106
107