Skip to content

New version Cocos2d-x implement #551

Description

@namkazt

Hi,

i just rewrote a new version with fix and improve from C0i version.

Features:
Programable pipline
Add ImageButton create with SpriteFrameCached
Add Toggle state for ImageButton
Fix Cocos2d-x Implement
Auto add ImGUI layer on top whenever create or change Scene

Link: https://github.com/namkazt/cocos2d-x-ImGui

Activity

  1. tangyiyang commented on Mar 18, 2016

    @tangyiyang

    this is cool

  2. ocornut commented on Mar 21, 2016

    @ocornut
    Owner

    Thanks!
    It would be nice if you organized this as an Example application following exactly the same standard of all other folders under examples/

    Right now I cannot do anything with this code.

  3. ocornut commented on Mar 22, 2016

    @ocornut
    Owner

    It would be more useful to make a PR for imgui if one of you would be willing to follow the structure or other imgui examples :)

  4. namkazt commented on Mar 22, 2016

    @namkazt
    Author

    yeah, i will prepare if have some time.

    •         Best Regards.Mr. Nam NguyễnPhone No. : 012.9595.8685*
      

    Skype Account : nam.kazt

    2016-03-22 15:08 GMT+07:00 omar notifications@github.com:

    It would be more useful to make a PR for imgui if one of you would be
    willing to follow the structure or other imgui examples :)

    —
    You are receiving this because you authored the thread.
    Reply to this email directly or view it on GitHub
    #551 (comment)

  5. ocornut commented on Jun 11, 2018

    @ocornut
    Owner

    Closing this as dropped/outdated.
    Please refer to the new examples/ design if someone wants to resurrect this into a standalone imgui_impl_cocos2dx.cpp binding.

  6. Mjarkiew commented on May 18, 2019

    @Mjarkiew

    Hey, it seems like I was able to resurrect this, at least I've migrated it to OpenGL 3 using provided examples and it seems to be working fine, I've added a demo here:

    https://github.com/Mjarkiew/cocos2dx-imgui

  7. halx99 commented on Sep 5, 2020

    @halx99
    Contributor

    News:
    Recently I integrate cocos2d-x-4.0 https://github.com/Xrysnow/cocos2d-x-imgui to axmol which is another fork of cocos2d-x-4.0 and do some improvements:

    • Simple API, more easy to use addRenderLoop/removeRenderLoop present ImGui GUI widgets
    • Optimize call pipeline flow, support add/remove Node to Scene at ImGui render loop without container iterator damage
    • Calculate deltaTime at ImGui_ImplCocos2dx_NewFrame to avoid error when cc.Director paused
    • Refine Init/Shutdown, Restore all callbacks for glfw to solve recreate ImGuiPresenter instance support
    • Use FOURCC for key of ImGui render loop
      Notes: And multi-viewports works well on windows, but doesn't works on mac osx, see follow screenshot:
      image
  8. halx99 commented on Mar 30, 2021

    @halx99
    Contributor

    Does the multi-view works on macOS with cocos2d-x-4.0 metal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions