Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version Cocos2d-x implement #551

Closed
namkazt opened this issue Mar 12, 2016 · 12 comments
Closed

New version Cocos2d-x implement #551

namkazt opened this issue Mar 12, 2016 · 12 comments
Labels

Comments

@namkazt
Copy link

namkazt commented Mar 12, 2016

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

@tangyiyang
Copy link

this is cool

@ocornut
Copy link
Owner

ocornut commented Mar 21, 2016

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.

@ghost
Copy link

ghost commented Mar 22, 2016

Would you like to send a pr to https://github.com/c0i/imguix ?

@ocornut
Copy link
Owner

ocornut commented Mar 22, 2016

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 :)

@namkazt
Copy link
Author

namkazt commented Mar 22, 2016

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)

@ocornut
Copy link
Owner

ocornut commented Jun 11, 2018

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.

@ocornut ocornut closed this as completed Jun 11, 2018
@Mjarkiew
Copy link

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

@ghost
Copy link

ghost commented May 19, 2019

OK, I'll check your code and update https://github.com/c0i/imguix .

@halx99
Copy link
Contributor

halx99 commented Sep 5, 2020

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

@ghost
Copy link

ghost commented Mar 30, 2021

NEWS:
https://github.com/c0i/imguix updates with docking branch and supports multi-viewport.

Sorry for disturbing you.

@halx99
Copy link
Contributor

halx99 commented Mar 30, 2021

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

@ghost
Copy link

ghost commented Mar 30, 2021

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

backends/imgui_impl_metal.mm:
// Missing features:
// [ ] Renderer: Multi-viewport / platform windows.

BUT : https://developer.apple.com/documentation/metal/mtlrendercommandencoder/rendering_to_multiple_viewports_in_a_draw_command?language=objc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants