MFC

所属分类:OpenGL
开发工具:Visual C++
文件大小:7KB
下载次数:30
上传日期:2009-08-10 13:57:35
上 传 者longer556
说明:  本文讲述了如何在MFC中添加OpenGL框架,分步骤详细简单,适合初学者学习。
(/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 )

文件列表:
MFC.doc (44032, 2009-08-08)

近期下载者

相关文件


收藏者