mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Rename hint to GLFW_TRANSPARENT to play better with others
This commit is contained in:
parent
4881f0b3ae
commit
7a9e8d5c3b
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user