Search found 8 matches

by flyingrub
Mon Jul 22, 2019 14:37
Forum: Developers Developers Developers
Topic: FFGL 2 SDK
Replies: 20
Views: 4404

Re: FFGL 2 SDK

Passing/returning ranges

Code: Select all

result.UIntValue == FF_FAIL
is undefined behaviour if there is something in PointerValue.
We need to change FFMixed to be a struct if we want to access both at the same time.
by flyingrub
Thu Jul 18, 2019 11:30
Forum: Developers Developers Developers
Topic: FFGL 2 SDK
Replies: 20
Views: 4404

Re: FFGL 2 SDK

Passing/returning ranges : The thing is that there is no way to know the final type of an union, and accessing inactive union member is undefined behaviour. As old plugins don't support this method the check if the result is FF_FAIL is important in Resolume Arena to check the range to { 0, 1 }. If ...
by flyingrub
Tue Jul 16, 2019 14:27
Forum: Developers Developers Developers
Topic: FFGL 2 SDK
Replies: 20
Views: 4404

Re: FFGL 2 SDK

Pointer recasting in FFGL.cpp : I already had a look at your .zip and found this solution very elegant, I don't see a reason why this should not be implemented like this. Passing/returning ranges : I wanted to have a status return value and a data return value so I use this different pattern here. ...
by flyingrub
Mon Jul 15, 2019 11:43
Forum: Developers Developers Developers
Topic: FFGL - How to get Texture info during creation of parameters
Replies: 4
Views: 1760

Re: FFGL - How to get Texture info during creation of parameters

I thought you wanted to change the value of the parameter, not the range. :?

So, yeah, it is not really possible at the moment, as Arena add the parameter before calling initGL, and we don'thave a way to push parameter range change to the host right now.
by flyingrub
Thu Jul 11, 2019 09:33
Forum: Developers Developers Developers
Topic: FFGL - How to get Texture info during creation of parameters
Replies: 4
Views: 1760

Re: FFGL - How to get Texture info during creation of parameters

InitGL function : https://github.com/resolume/ffgl/blob/master/source/lib/ffgl/FFGLPluginSDK.h#L59 Every plugin should have a variable named currentViewport that contains texture info after InitGL is called by the host. Even if you create your parameter in the constructor and you still don't have th...
by flyingrub
Tue Apr 23, 2019 09:33
Forum: Developers Developers Developers
Topic: FFGL and colour picker widgets (v6)
Replies: 1
Views: 1168

Re: FFGL and colour picker widgets (v6)

The issue for the default colour is already fixed internally, but I think the fix will only be available for 7, unfortunately.
by flyingrub
Fri Mar 22, 2019 10:20
Forum: Developers Developers Developers
Topic: Let's talk about text... (FF_TYPE_TEXT)
Replies: 7
Views: 2140

Re: Let's talk about text... (FF_TYPE_TEXT)

I had some issue with std::string returning a const value and over engineered the solution around it :roll: here is a simple solution using std::string. https://github.com/flyingrub/FFGL-plugi ... 5692cbdb3d
by flyingrub
Thu Mar 21, 2019 10:33
Forum: Developers Developers Developers
Topic: Let's talk about text... (FF_TYPE_TEXT)
Replies: 7
Views: 2140

Re: Let's talk about text... (FF_TYPE_TEXT)

I'm currently building a framework around FFGL, to help new user to start with it, you can find how I deal with text parameter here : https://github.com/flyingrub/FFGL-plugin-quickstart/blob/master/src/api/Plugin.cpp#L156-L176. I don't want to deal with C function and memory myself so I cheated and ...