wglCreatePbufferARB具有兼容的设备上下文

时间:2013-10-18 10:10:10

标签: windows opengl pixel device-context

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

0 个答案:

没有答案