Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Graph program OpenGL program
Title: MFC Download
 Description: /step 3 重新设置像素格式 BOOL CXXXMFCGLView::SetupPixelFormat(HDC hDC) { //重新设置画图窗口的像素格式 static PIXELFORMATDESCRIPTOR pfd = { sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd 1, // version number PFD_DRAW_TO_WINDOW | // support window PFD_SUPPORT_OPENGL | // support OpenGL PFD_DOUBLEBUFFER, // double buffered PFD_TYPE_RGBA, // RGBA type 24, // 24-bit color depth 0, 0, 0, 0, 0, 0, // color bits ignored 0, // no alpha buffer 0, // shift bit ignored 0, // no accumulation buffer 0, 0, 0, 0, // accum bits ignored 32, // 32-bit z-buffer 0, // no stencil buffer 0, // no auxiliary buffer PFD_MAIN_PLANE, // main layer
 Downloaders recently: [More information of uploader longer556]
 To Search:
  • [snowGL] - OpenGL write snow scenes
File list (Check if you may need any files):
MFC.doc
    

CodeBus www.codebus.net