FixObjectFactory
-
Hi guys,
I was just wondering what the functionEngine.createFixObjectFactory()
is used for, since we can create our own factory functions...
I tried simply but the object is returned as undefined. I'm obviously missing something :grinning_face_with_sweat: -
@Matt_SF It's for oop type stuff, Christoph showed me it a while back but I've completely forgotten how to use it :)
-
@d-healey ah, I thought it was related to oop. I'm currently training to manipulate objects so I thought I could give it a try.
@Christoph-Hart if you've got some time to spare, could you please just show me an example? -
@Matt_SF Yes, I also completely forgot how it works :) I'll need to dig in the source code and write some docs about it.
But basically it lets you define objects with a fix memory layout that can be created without allocating and offers some convenient functions.
I created this to simplify the glue code between HiseScript and GLSL, but it might also be used in realtime-optimized scripts (MIDI processing).
-
@Christoph-Hart haha no problem, I don't need it absolutely right now, it has just piqued my interest.
I also took a quick look in the source code but didn't find anything yet. I'll look closer