Cocoa: Implement GLFW_TRANSPARENT

This is an extract of a commit, minimally edited to ensure it compiles.

Closes #663.
Related to #197.
This commit is contained in:
Cem Karan
2015-12-16 16:28:20 -05:00
committed by Camilla Löwy
parent 51f0cd3b51
commit ac009a5f5c
2 changed files with 17 additions and 1 deletions
+6
View File
@@ -296,6 +296,12 @@ GLFWbool _glfwCreateContextNSGL(_GLFWwindow* window,
return GLFW_FALSE;
}
if (window->transparent)
{
GLint opaque = 0;
[window->context.nsgl.object setValues:&opaque forParameter:NSOpenGLCPSurfaceOpacity];
}
[window->context.nsgl.object setView:window->ns.view];
window->context.makeCurrent = makeContextCurrentNSGL;