0

是否可以为兼容的设备上下文创建pBuffer使用?wglCreatePbufferARB

HDC fHDC = ::GetDC((HWND)_window);
HDC _fHDC = ::CreateCompatibleDC(fHDC);
HBITMAP memBM = ::CreateCompatibleBitmap ( fHDC, bounds.xMax - bounds.xMin, bounds.yMax - bounds.yMin );
::SelectObject ( _fHDC, memBM );

later on, i'm creating pBuffer using calls -    
wglChoosePixelFormatARB(_fHDC, iAttribList, fAttribList, 1,
                                &pixelFormat, &numFormats)

hBuffer=wglCreatePbufferARB(_fHDC, pixelFormat, width, height, flags);

我的电话wglChoosePixelFormatARB失败了

4

0 回答 0