[waffle] [GSOC 2014] How to deal with non win32 api, wgl(Create, Make)Context depends on existing window

Emil Velikov emil.l.velikov at gmail.com
Wed May 28 12:49:25 PDT 2014


On 28/05/14 20:37, Emil Velikov wrote:
>
>    window_handle = CreateWindow(...)
>    device_context = GetDC(window_handle);
> 
>    gl_rendering_context = wglCreateContext(device_context);
>    wglMakeCurrent (device_handle, gl_rendering_context);
> 
>    // any of the following
>    wglGetProcAddress(...)
>    wglChoosePixelFormat(...)
Correction wglChoosePixelFormat does not require a context. Although
wglGetProcAddress does.

-Emil




More information about the waffle mailing list