-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force viewport buttons semitransparent
- Loading branch information
1 parent
85c2f6b
commit 29f736c
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
Copyright © 2024, Inochi2D Project | ||
Distributed under the 2-Clause BSD License, see LICENSE file. | ||
Author: Luna Nielsen | ||
*/ | ||
module creator.viewport.common.utils; | ||
import bindbc.imgui; | ||
|
||
/** | ||
Returns the given color with the alpha channel modified. | ||
*/ | ||
ImVec4 setAlpha(inout(ImVec4)* in_, float alpha) { | ||
ImVec4 out_ = *in_; | ||
out_.w = alpha; | ||
return out_; | ||
} |