HISE_USE_SCRIPT_RECTANGLE_OBJECT
-
Where do I add the preprocessor definition for the Rectangle class? And other app-wide devs too?
In the top-level Xcode (macOS) box:

Or in each of the Debug, Release, etc. boxes:

Or both?
-
@dannytaurus top level
-
@David-Healey Thanks

-
@dannytaurus But is it still necessary for the rectangle? I don't seem to have the preprocessor though I am using the rectangle class extensively nowadays...
-
https://docs.hise.audio/scripting/scripting-api/rectangle/index.html
Note that for backwards compatibility, HISE will still use the JS arrays for all methods or callbacks that return a rectangle (eg. ScriptComponent.getLocalBounds() or the obj.area property in LAF functions). In order to change that you can enable the preprocessor HISE_USE_SCRIPT_RECTANGLE_OBJECT=1 , then it will return a Rectangle object for the full experience.
-
-
@ustk
Me, too!
-
haha me too...
-
Can someone enlighten me on how this function is useful please?
-
https://docs.hise.audio/scripting/scripting-api/rectangle/index.html
I also posted a video about it on Patreon a couple of months ago
