Search found 11 matches

by flyingrub
Thu Feb 13, 2020 10:45
Forum: Developers Developers Developers
Topic: Getting default uniforms
Replies: 1
Views: 8101

Re: Getting default uniforms

You need to use the ffglquickstart classes so that the default params are sent, for example FFGLEffect if you are creating an effect.
by flyingrub
Thu Nov 28, 2019 18:58
Forum: Developers Developers Developers
Topic: FFGL - How to get Texture info during creation of parameters
Replies: 6
Views: 15391

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

It has been a while that I did not touch this code since Menno started to work on this, but from what I see this part did not really change and should be the same as before. :)
by flyingrub
Mon Jul 22, 2019 14:37
Forum: Developers Developers Developers
Topic: FFGL 2 SDK
Replies: 20
Views: 35921

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: 35921

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: 35921

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: 6
Views: 15391

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: 6
Views: 15391

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: 6817

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: 13338

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