mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-12 21:38:47 +00:00
[Feature] Added SetWindowOpacity(float opacity) (#2254)
* Added drawing text with shadow * Added SetWindowOpacity() * Edited Mis-spell * Fixed conventions
This commit is contained in:
10
src/rcore.c
10
src/rcore.c
@@ -1575,6 +1575,16 @@ void SetWindowSize(int width, int height)
|
||||
#endif
|
||||
}
|
||||
|
||||
// Set window opacity, value opacity is between 0.0 and 1.0
|
||||
void SetWindowOpacity(float opacity)
|
||||
{
|
||||
#if defined(PLATFORM_DESKTOP)
|
||||
if (opacity >= 1.0f) opacity = 1.0f;
|
||||
else if (opacity <= 0.0f) opacity = 0.0f;
|
||||
glfwSetWindowOpacity(CORE.Window.handle, opacity);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Get current screen width
|
||||
int GetScreenWidth(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user