StageStyle.EXTENDED with transparent background

Michael Strauß michaelstrau2 at gmail.com
Thu Nov 13 19:28:39 UTC 2025


> The Mac Glass platform code builds the surface (CALayer) and passes that to the rendering pipeline instead of the NSView. Is it possible for Windows Glass to do something similar? Seems odd to be passing an HWND into a rendering pipeline.

Prism renders into a D3DRTTexture, so we're almost there. We just need
a Presentable implementation that is not a D3DSwapChain, but can
interface with DirectComposition instead.



> Are you talking about an API for creating custom materials? I don’t think that’s possible on macOS. To blend the window contents against the desktop background in real-time NSVisualEffectView uses a couple of undocumented CoreAnimation layers. In effect NSVisualEffectView is the only component that can do this and it’s constrained to the built-in materials.

What I was trying to say is that we can't achieve the same visual
effects on multiple platforms. And even when we limit ourselves to the
built-in materials on each platform, there's no real commonality
either. So it's kind of hard to imagine a cross-platform API for it.



> I've never heard of any previous effort, and it couldn't have been me
> beacuse I haven't talked about this up util now. I'd be interested to
> learn about other attempts at solving this.
>
>
> Found the e-mail. You mentioned this project in passing on a different thread. https://marc.info/?l=openjdk-openjfx-dev&m=167536435011246

Oh, I _did_ talk about it and forgot.


More information about the openjfx-dev mailing list