On 08/04/2014 09:28 AM, Emil Velikov wrote: > Unlike GLX and EGL, WGL(Windows) does not have the concept of a display > in the sense used in waffle. > > The 'root primitive' for WGL is a window with it's device context > which encapsulates the properties and capabilities of the device > doing the actual rendering (CPU or GPU). > > As such we first need to create a unique window class that will be > used for all waffle windows, and then create the 'root' window. > > The windows itself is disabled (cannot grab the input) and of zero > width and height. > > While we're here make sure that we create a context, which will be > needed in a variety of cases - when we query the WGL extensions, as a > fallback context in waffle_get_proc_address... > > v2: Bail out if we're using the GDI renderer. > v3: Zero-initialise pfd and explicitly set its required parameters. > > Signed-off-by: Emil Velikov <[email protected]> > Reviewed-by: Jose Fonseca <[email protected]> > --- > src/waffle/wgl/wgl_display.c | 112 > +++++++++++++++++++++++++++++++++++++++++- > src/waffle/wgl/wgl_display.h | 5 ++ > src/waffle/wgl/wgl_platform.c | 41 ++++++++++++++++ > src/waffle/wgl/wgl_platform.h | 3 ++ > 4 files changed, 159 insertions(+), 2 deletions(-)
Reviewed-by: Chad Versace <[email protected]> _______________________________________________ waffle mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/waffle

