Announcement

Collapse
No announcement yet.

How did you change color from GL.ClearColor() with Gtk's ColorSelectionDialog?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How did you change color from GL.ClearColor() with Gtk's ColorSelectionDialog?

    Hello everyone, I am working my editor like your waveeditor or unity...

    I really want know how do I change color of background like WaveEngine's Material Editor?
    I really don't understand I have checked ILSpy - Why do you use only Gdk.Color? I thought you use ColorSelectionDialog of changing background color? Please explain me! I search hard to Google and I can't find anything.. I have tried to idea but I have not idea. Where do i get color from GL.ClearColor with Gtk's ColorSelectionDialog?

    Thanks!

  • #2
    Yeah I have forgotten time

    I have tried to choose color if Gtk GLWidget changes color of clearcolor:

    https://www.youtube.com/watch?v=Ao_2jDdFPtw

    Check my example: With OpenTK latest version + Gtk Sharp 3.22

    Link to https://gist.github.com/sourceskybox...998087ac981c11
    Last edited by SourceSkyBoxer; 07-08-2018, 10:10 PM.

    Comment


    • #3
      Hello I am here and I really want know how do I add DrawingArea or rectangle on normal Button with color. Because Gtk Sharp 2.x has ColorButton with current dialog ( called ColorSelectionDialog ) But Gtk Sharp 3 has wrong dialog ( Called ColorChooseDialog ) I really don't know how do I fix current dialog with ColorSelectionDialog and without drag&drop if You press color and move - It looks crazy - How do I disable drag&drop of color to ColorButton - Just I use normal Buttoon with DrawingArea with clicked method to ColorSelectionDialog. Like this I show you video

      https://www.youtube.com/watch?v=VxL85J3GYtA

      Comment


      • #4
        // Can't edit

        Yeah I have goal initial wrong ColorButton ( Button + DrawingArea + ColorSelectionDialog ) xD
        https://www.youtube.com/watch?v=yqZBxOA2nnU

        Comment


        • #5
          Now I am getting finsih but triangle can't change color.

          https://gist.github.com/sourceskybox...998087ac981c11
          Can you help me maybe? Because I don't know how do I change color like your WaveEditor has same color choose but how do I change color of cube or triangle colorable?=

          Comment


          • #6
            Now It resolved because you didn't tell about shader like in or uniform now it works fine

            Check video!
             

            Comment

            Working...
            X