Rename hint to GLFW_TRANSPARENT to play better with others

This commit is contained in:
Bailey Cosier 2017-09-16 22:25:01 +07:00
parent 4881f0b3ae
commit 7a9e8d5c3b
3 changed files with 5 additions and 5 deletions

View File

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
glfwWindowHint(GLFW_ALPHA_BITS, 8);
glfwWindowHint(GLFW_ALPHA_MASK, GLFW_TRUE);
glfwWindowHint(GLFW_TRANSPARENT, GLFW_TRUE);
glfwWindowHint(GLFW_DECORATED, GLFW_TRUE);
window = glfwCreateWindow(256, 256, "Transparent window example", NULL, NULL);

View File

@ -870,10 +870,10 @@ extern "C" {
#define GLFW_DOUBLEBUFFER 0x00021010
/*! @brief Context ALPHA Mask hint and attribute.
*
* Context window alpha [hint](@ref GLFW_ALPHA_MASK_hint) and
* [attribute](@ref GLFW_ALPHA_MASK_attrib).
* Context window alpha [hint](@ref GLFW_TRANSPARENT_hint) and
* [attribute](@ref GLFW_TRANSPARENT_attrib).
*/
#define GLFW_ALPHA_MASK 0x00021011
#define GLFW_TRANSPARENT 0x00021011
/*! @brief Context client API hint and attribute.
*
* Context client API [hint](@ref GLFW_CLIENT_API_hint) and

View File

@ -319,7 +319,7 @@ GLFWAPI void glfwWindowHint(int hint, int value)
case GLFW_DOUBLEBUFFER:
_glfw.hints.framebuffer.doublebuffer = value ? GLFW_TRUE : GLFW_FALSE;
return;
case GLFW_ALPHA_MASK:
case GLFW_TRANSPARENT:
_glfw.hints.framebuffer.alphaMask = value;
return;
case GLFW_SAMPLES: