是否可以使用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
的电话失败