0
我想知道要更改PIXELFORMATDESCRIPTOR
對象中更改顏色深度的值。顏色深度PIXELFORMATDESCRIPTOR
根據OpenGL的維基,這是你如何創建一個PIXELFORMATDESCRIPTOR
對象OpenGL上下文:
PIXELFORMATDESCRIPTOR pfd =
{
sizeof(PIXELFORMATDESCRIPTOR),
1,
PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER, //Flags
PFD_TYPE_RGBA, //The kind of framebuffer. RGBA or palette.
32, //Colordepth of the framebuffer.
0, 0, 0, 0, 0, 0,
0,
0,
0,
0, 0, 0, 0,
24, //Number of bits for the depthbuffer
8, //Number of bits for the stencilbuffer
0, //Number of Aux buffers in the framebuffer.
PFD_MAIN_PLANE,
0,
0, 0, 0
};
但它有不同的變量影響的顏色深度。
我需要改變哪些來調整顏色深度?