Floating Window with the FxPlug additional UI
Floating Window with the FxPlug additional UI
- Subject: Floating Window with the FxPlug additional UI
- From: Tomasz Huczek via Pro-apps-dev <email@hidden>
- Date: Mon, 26 Aug 2019 11:33:07 +0200
Hello everyone,
I develop a FxPlug that requires some custom user interface which cannot be
expressed using built-in controls.
I’ve seen some plugins that use floating windows and was wondering what’s the
best way to do that.
What I’m doing now is:
1. Have a button in the inspector to create a floating window,
2. When the button is pressed I create new window (or show if it has already
been created) using FxWindowAPI (and store it statically - 1 instance per FCPX
process),
3. On each FxOnScreenControl::initWithAPIManager call I update the apiManager
pointer linked with the above window (also some static variable per FCPX
instance).
Is this the right way to do it?
The issues I’m having:
1. I need to click the plugin instance in the inspector to actually instantiate
the FxOnScreenControl and get the pointer to the apiManager when going over the
timeline. Is there a way to fetch it automatically?
2. If I’m using OpenGL within the floating window the performance is
compromised by background rendering (I’m using a shared OpenGL context to have
access to textures created in FxOnScreenControl).
3. From my tests, looks like temporalApi::getInputTexture doesn’t really work
properly, I have to use temporalApi::getInputBitmap, any particular reason
behind that?
Hope the above makes sense - thanks in advance for any pointers.
Tom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden