-
-
Notifications
You must be signed in to change notification settings - Fork 292
Transparent window support for Mac #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Shchvova
merged 17 commits into
coronalabs:experimental
from
ggcrunchy:TransparentWindow
Jan 27, 2023
Merged
Transparent window support for Mac #412
Shchvova
merged 17 commits into
coronalabs:experimental
from
ggcrunchy:TransparentWindow
Jan 27, 2023
Conversation
This file contains hidden or 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
…nd buffer and assignment logic Next up, prepare details from graphics.defineEffect()
…from Program Slight redesign of TimeTransform with caching (to synchronize multiple invocations with a frame) and slightly less heavyweight call site
Err, was calling Modulo for sine method, heh That said, time transform seems to work in basic test
Fixed error detection for positive number time transform inputs Relaxed amplitude positivity requirement
Maintenance Revert Test
My mistake adding back changes made
This might also be interesting to explore: NSVisualEffectView |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This offers preliminary support for transparent windows on Mac, roughly like what you see in the GIF here.
(Details were worked out from this, this, this, and some guesswork after that.)
Basically, in your
config.lua
, you have something likeand somewhere in your code, do something like this, more or less my test:
and any pixels you don't draw will expose the background underneath the simulator / application (alpha = 0), or blend with it (> 0 and < 1).
As that last comment implies, I added support in the simulator to visualize the result, even though none of the devices themselves are supported. The Mac build, of course, will be appropriately transparent.
This is probably "experimental" at this point. Transparency requires a borderless window, which probably means some positioning / movement support is also needed to supplement it. (Maybe something akin to what the simulator skins do.)
(On that last note, a sanity check: do some of the skins just not show when running the simulator from a build? I was worried my changes were somehow causing this, but another branch seemed to show the same result.)