mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 14:22:50 +00:00
Add GLFW_TRANSPARENT and X11 implementation
This is a squashed extract of several commits, minimally edited to ensure it compiles. Related to #197. Related to #715.
This commit is contained in:
committed by
Camilla Löwy
parent
eed94448fd
commit
019609b6cd
@@ -172,6 +172,7 @@ static GLfloat angle = 0.f;
|
||||
/* OpenGL draw function & timing */
|
||||
static void draw(void)
|
||||
{
|
||||
glClearColor(0., 0., 0., 0.);
|
||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
glPushMatrix();
|
||||
@@ -311,6 +312,8 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
glfwWindowHint(GLFW_DEPTH_BITS, 16);
|
||||
glfwWindowHint(GLFW_ALPHA_BITS, 8);
|
||||
glfwWindowHint(GLFW_TRANSPARENT, GLFW_TRUE);
|
||||
|
||||
window = glfwCreateWindow( 300, 300, "Gears", NULL, NULL );
|
||||
if (!window)
|
||||
|
||||
Reference in New Issue
Block a user