mirror of
https://github.com/glfw/glfw.git
synced 2025-09-05 13:30:41 +00:00
Compare commits
2 Commits
dbb98f1f76
...
0e0edaf9e6
Author | SHA1 | Date | |
---|---|---|---|
|
0e0edaf9e6 | ||
|
b6917600b7 |
@ -43,7 +43,8 @@ what kind of context is created. See
|
|||||||
|
|
||||||
When creating a window and its OpenGL or OpenGL ES context with @ref
|
When creating a window and its OpenGL or OpenGL ES context with @ref
|
||||||
glfwCreateWindow, you can specify another window whose context the new one
|
glfwCreateWindow, you can specify another window whose context the new one
|
||||||
should share its objects (textures, vertex and element buffers, etc.) with.
|
should share its shareable objects (textures, vertex and element buffers, etc.)
|
||||||
|
with.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
GLFWwindow* second_window = glfwCreateWindow(640, 480, "Second Window", NULL, first_window);
|
GLFWwindow* second_window = glfwCreateWindow(640, 480, "Second Window", NULL, first_window);
|
||||||
@ -51,7 +52,7 @@ GLFWwindow* second_window = glfwCreateWindow(640, 480, "Second Window", NULL, fi
|
|||||||
|
|
||||||
Object sharing is implemented by the operating system and graphics driver. On
|
Object sharing is implemented by the operating system and graphics driver. On
|
||||||
platforms where it is possible to choose which types of objects are shared, GLFW
|
platforms where it is possible to choose which types of objects are shared, GLFW
|
||||||
requests that all types are shared.
|
requests that all shareable types are shared.
|
||||||
|
|
||||||
See the relevant chapter of the [OpenGL](https://www.opengl.org/registry/) or
|
See the relevant chapter of the [OpenGL](https://www.opengl.org/registry/) or
|
||||||
[OpenGL ES](https://www.khronos.org/opengles/) reference documents for more
|
[OpenGL ES](https://www.khronos.org/opengles/) reference documents for more
|
||||||
|
Loading…
Reference in New Issue
Block a user