Hi,
I need to generate rendering floating window (no full screen, but sized window) to move on screen desktop, without title bar, borders and shadows.
I made a copy of the Render Layers to window node where I expect to change the NSWindow style of the context->window calling an ObjC code.
I’m not able to find the right compile setUp.
Any help will be appreciated
Luciano
MTWindow.zip (6.3 KB)
Here’s one way you could do it:
MTWindow-20240626b.zip (6.4 KB)
With mt.layer.render.window3.c
in the Modules folder, it will be compiled automatically when you open VuoComposition.vuo
. You can also drop the .c file in your User Modules folder (Tools > Open User Library in Finder) to make it available to other compositions.
By the way, the reason for calling the setStyleMask
method with objc_msgSend
instead of directly is because there’s not really a good way to #import <AppKit/AppKit.h>
in a custom node class.