Search Unity

Implementing IMGUI outside Unity Editor

Discussion in 'Immediate Mode GUI (IMGUI)' started by zwcloud, Aug 2, 2016.

  1. zwcloud

    zwcloud

    Joined:
    Mar 15, 2016
    Posts:
    377
    Progress will be updated on my site: https://zwcloud.net/#project/imgui

    Current State

    Programming language
    Amost all codes are written in C# and some intergrating codes of the basic backends are written in C/C++.

    Basic backends
    1. vector/image drawing: a self-made mesh based vector and image rendering backend.
    2. rasterization: OpenGL 4
    3. text drawing/layouting: an interface abstracted with a DWriteSharp port implemented.
    4. window creation: an interface abstracted with a windows port implemented

    GUI logics
    1. basic controls: Label, Button, Toggle, Radio, SliderHorizontal, SliderVertical, TextBox(to be fixed), ComboBox(to be fixed)
    2. basic skin and style
    3. layouting


    History
    Handled touch event on Android.
    It works on Android now! (The text rendering backend is still being implemented.)
    Full GPU rendering implemented, cairo is no longer used.
    First API document created for the coming initial release.
    Fixed some controls. See the API doc for detials.
    Stretchable layouting is implemented.
    Progress in passed 3 days:
    Unity3D-style layouting
    evenly filled layouting:


    auto-sized layouting:


    These are still different from the layouting of Unity's IMGUI. But they are very similar now.


    I'll work on the stretchable layouting.
     
    Last edited: Apr 21, 2017
    UnityLighting likes this.
  2. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    552
    Hey! Really interesting stuff :) Not often you find someone wanting to reimplement an IMGUI framework.

    Note that I actually believe that Unity's behavior is wrong in the case where "dummy 11" isn't taking up half width of the window. Unfortunately, it's still that way now for backwards compatibility reasons, but I think your mock interpretation of that width makes sense.
     
  3. zwcloud

    zwcloud

    Joined:
    Mar 15, 2016
    Posts:
    377
    :D I'm a fun of IMGUI. I love it so much that I want to make one myself.

    Yes. This behavior is surely abnormal. Thanks for point that out.