Floating Window with the FxPlug additional UI
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version; bh=TgAs6jDnFKJHY2IbHHXQh+1WPEbbSOI0HrUw2D3eFNc=; b=hT60uDHTS6EhshU9sdIUF3sOBmqigAVLVzkVUKyp8h7JtfLZ6wp18WKqgYZX+ev7I5 HSd7hdsUaTKb0AeITiFN6mqpKQYLF6A+HtuyUh/Ev0wrAxwpaGKE9SWhc2f2MS17pOLU jfTlqIR8dfhEv7yiVZoN4OiLdFDTRqrESpMlVv7N5VWlecAd/wHZjoxTHmQsQHUOlyMv xQ7L5TrDOczcLVyY2XjsoTIA4xnkMp3KNF4laUoX7q6+POfIsRfTJflURuQbEavkR7Ld QqCqYVcIU8BRTl135QkcOg5zYPDi0zSGKj0taX7M5iaelvWbRijfy3jvxzrWewi5ki+X sl9Q== 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 (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Tomasz Huczek via Pro-apps-dev