From 5668eb0732a21b7e6e463531d93bc24bdf6bd149 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 5 Dec 2013 03:15:35 +0100 Subject: [PATCH] Added paragraph on object sharing. --- docs/context.dox | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/context.dox b/docs/context.dox index 56d1de76..8057cc70 100644 --- a/docs/context.dox +++ b/docs/context.dox @@ -24,6 +24,15 @@ what kind of context is created. See [context related hints](@ref window_hints_ctx) in the window handling guide. +@section context_sharing Context object sharing + +When creating a window and context with @ref glfwCreateWindow, you can specify +another window whose context the new one should share its objects with. OpenGL +object sharing is implemented by the operating system and graphics driver and is +described in the OpenGL documentation. On platforms where it is possible to +choose which types of objects are shared, GLFW requests that all are shared. + + @section context_current Current context Before you can use the OpenGL or OpenGL ES APIs, you need to have a current