HISE Logo Forum
    • Categories
    • Register
    • Login

    FixObjectFactory

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 303 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Matt_SFM
      Matt_SF
      last edited by

      Hi guys,
      I was just wondering what the function Engine.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:

      03d73a6e-a4bc-42f0-a94f-8846b23c74e4-image.png

      Develop branch
      Win10 & VS17 / Ventura & Xcode 14. 3

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Matt_SF
        last edited by

        @Matt_SF It's for oop type stuff, Christoph showed me it a while back but I've completely forgotten how to use it :)

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        Matt_SFM 1 Reply Last reply Reply Quote 0
        • Matt_SFM
          Matt_SF @d.healey
          last edited by

          @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?

          Develop branch
          Win10 & VS17 / Ventura & Xcode 14. 3

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @Matt_SF
            last edited by

            @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).

            Matt_SFM 1 Reply Last reply Reply Quote 3
            • Matt_SFM
              Matt_SF @Christoph Hart
              last edited by

              @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

              Develop branch
              Win10 & VS17 / Ventura & Xcode 14. 3

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              17

              Online

              1.7k

              Users

              11.8k

              Topics

              103.2k

              Posts