win32
FreeBodyEngine.graphics.gl44.context.win32
#
PFD_DOUBLEBUFFER = 1
module-attribute
#
PFD_DRAW_TO_WINDOW = 4
module-attribute
#
PFD_MAIN_PLANE = 0
module-attribute
#
PFD_SUPPORT_OPENGL = 32
module-attribute
#
PFD_TYPE_RGBA = 0
module-attribute
#
create_win32_opengl_context(window, debug)
#
Creates a GL context for window via WGL: builds a
PIXELFORMATDESCRIPTOR requesting a double-buffered, 32-bit-color/
24-bit-depth/8-bit-stencil RGBA pixel format, chooses and sets it on
window.hdc, then creates and activates a rendering context (hrc)
against that DC. Raises RuntimeError, naming the specific step, if
choosing/setting the pixel format or creating/activating the context
fails.