Forum

    • Register
    • Login
    • Search
    • Categories

    OpenGL ComboBox, And "NO" By Default

    General Questions
    8
    43
    548
    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.
    • Natan
      Natan last edited by

      Hey Folks

      I Tried Below Ones, And Still Cant Get The ComboBox Value To Show Up And Set To "NO" By Default

      I Did :
      HISE_USE_OPENGL_FOR_PLUGIN=0
      And Combo Box Disappeared.

      I Did :
      HISE_USE_OPENGL_FOR_PLUGIN=1
      Combo Box Shows Up But the Value Is Yes.

      I Did :
      HISE_USE_OPENGL_FOR_PLUGIN=0
      And Added "GraphicRendering": true, into the CustomSettings Floating Tile.
      ComboBox Not Showing Up At all.

      Did anyone get A Solution For This?

      1 Reply Last reply Reply Quote 0
      • Natan
        Natan last edited by

        @orange Mate, Saw A Post From You, Here
        Did you get This Going?

        orange 1 Reply Last reply Reply Quote 0
        • Natan
          Natan last edited by

          @Casey-Kolb Look Like You Made It Work, Any Advice?

          1 Reply Last reply Reply Quote 0
          • Natan
            Natan last edited by

            @Christoph-Hart Could You Please Give Me A Hint?

            1 Reply Last reply Reply Quote 0
            • orange
              orange @Natan last edited by orange

              @Natan said in OpenGL ComboBox, And "NO" By Default:

              @orange Mate, Saw A Post From You, Here
              Did you get This Going?

              Since the only way to see this combobox is to set HISE_USE_OPENGL_FOR_PLUGIN=1 , the combobox setting will be "true" by default.

              Also, CustomSettings Floating Tile can't be saved in a preset. The value is stored in the GeneralSettings.xml file of the project in appdata folder.

              So firstly, you need to use HISE_USE_OPENGL_FOR_PLUGIN=1 and build the plugin with that.

              Then in order to make the OPEN_GL="0" on the plugin start, you need to distribute the modified GeneralSettings.xml file (with OPEN_GL="0" modification) to the appdata folder. with the installer. So while installing the plugin, this GeneralSettings.xml file will be created before the plugin initialization and plugin will start with OPEN_GL="0".

              develop Branch / XCode 13.1
              macOS Monterey / M1 Max

              Natan 1 Reply Last reply Reply Quote 1
              • Natan
                Natan @orange last edited by

                @orange Thank A Ton Mate for Your Detailed Comment πŸ™

                Yeah, I guess there's no Other way to Set it to No, on the other hand Having it On the FlotingTile.
                So That is The Solution,
                For now, I'll ship It With Yes, and Combobox On, And Note On Settings Page Regarding the Open Gl Option.

                1 Reply Last reply Reply Quote 1
                • Christoph Hart
                  Christoph Hart last edited by

                  No just change the default value in the source code, no need to ship the modified xml.

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

                    @Christoph-Hart Thanks A Lot Christoph
                    Could you please Let me What Line?
                    And What Cpp?

                    1 Reply Last reply Reply Quote 0
                    • Natan
                      Natan last edited by

                      Here >>>
                      https://github.com/christophhart/HISE/blob/e4b8330a3c6b19b333b3544e9f4f599f3ce9726d/hi_components/plugin_components/StandalonePopupComponents.cpp#L377

                      is Thi Correct?

                      1 Reply Last reply Reply Quote 0
                      • Natan
                        Natan last edited by

                        @Christoph-Hart said in OpenGL ComboBox, And "NO" By Default:

                        No just change the default value in the source code, no need to ship the modified xml.

                        @Christoph-Hart No Idea Where it Located πŸ˜•

                        1 Reply Last reply Reply Quote 0
                        • Natan
                          Natan last edited by

                          No After A Few Hours, Still Can't Find Where It Located, There is Tons of OpenGL Command Lines On Source Code, And No Help Here πŸ˜•

                          ustk 1 Reply Last reply Reply Quote 0
                          • d.healey
                            d.healey last edited by d.healey

                            Try standalonePopupComponents.cpp line 128 (in develop branch). Just removing the ! should give you what you want.

                            #if !HISE_USE_OPENGL_FOR_PLUGIN
                            	properties[(int)Properties::UseOpenGL] = false;
                            #endif
                            

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

                            1 Reply Last reply Reply Quote 2
                            • ustk
                              ustk @Natan last edited by ustk

                              @Natan I just replied to your PM. As @orange said, it is OPEN_GL you want to look for. If you have searched with this exact string you would have found only one file (2 in fact, but the other one can't be related) with only 3 entries in it.

                              Unless @d-healey way is the best one? Haven't tried myself...

                              I cannot help pressing F5 in the forum...
                              Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                              1 Reply Last reply Reply Quote 1
                              • Natan
                                Natan last edited by

                                Excellent, Thank you guys πŸ‘@d-healey @ustk
                                I’ll give a try right now

                                1 Reply Last reply Reply Quote 0
                                • Natan
                                  Natan last edited by Natan

                                  @orange @ustk @d-healey
                                  This is Excellent,
                                  Just Removed The ! And Open Gl Popped Up On Floating TIle, With Value no

                                  Thanks A Ton SIr David You're Rock πŸš€ πŸ™

                                  Update: Compiled And works like charm on My Plugin.
                                  And no need for extra Flag on Preferences,
                                  It’s Disabled by Default πŸ˜πŸ™ŒπŸ™ŒπŸ™ŒπŸ™ŒπŸ˜Ž

                                  ustk 1 Reply Last reply Reply Quote 1
                                  • ustk
                                    ustk @Natan last edited by ustk

                                    @Natan Cool!
                                    although it might be better to just remove the statement and write:

                                    properties[(int)Properties::UseOpenGL] = HISE_USE_OPENGL_FOR_PLUGIN;
                                    

                                    Otherwise, it won't be set to false when needed the same way it was never set to true

                                    I cannot help pressing F5 in the forum...
                                    Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                                    d.healey 1 Reply Last reply Reply Quote 1
                                    • d.healey
                                      d.healey @ustk last edited by d.healey

                                      @ustk He want's the option there but he wants it set to false. I think your suggestion will set it to true

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

                                      ustk Natan 3 Replies Last reply Reply Quote 2
                                      • ustk
                                        ustk @d.healey last edited by

                                        @d-healey Only if HISE_USE_OPENGL_FOR_PLUGIN has been declared true

                                        I cannot help pressing F5 in the forum...
                                        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                                        d.healey 1 Reply Last reply Reply Quote 1
                                        • ustk
                                          ustk @d.healey last edited by

                                          @d-healey Nope sorry! You're right πŸ˜‰

                                          I cannot help pressing F5 in the forum...
                                          Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                                          1 Reply Last reply Reply Quote 1
                                          • d.healey
                                            d.healey @ustk last edited by

                                            @ustk Which it will be if he wants it to show up in the Settings tile, no?

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

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

                                            6
                                            Online

                                            977
                                            Users

                                            6.6k
                                            Topics

                                            60.6k
                                            Posts