cocos2d-x-ImGui
cocos2d-x-ImGui copied to clipboard
New version from coi
cocos2d-x-ImGui
Fixed version from coi version
Features:
- Programable pipline
- Add ImageButton create with SpriteFrameCached
- Fix Cocos2d-x Implement
- Auto add ImGUI layer on top whenever create or change Scene
- All ImGUI v1.4.8 WIP features + Simple Style Change
Using:
-
Replace AppDelegate and GLViewImpl as needed
-
Add the ImGui callbacks through the
CCIMGUIglobal
CCIMGUI::getInstance()->addImGUI([=](){
ImGui::SetNextWindowPos(ImVec2(650, 20), ImGuiSetCond_FirstUseEver);
ImGui::ShowTestWindow(&isShowDemo);
}, "Function ID");
this will auto add to pipline
- Remove ImGUI functions
CCIMGUI::getInstance()->removeImGUI("Function ID");
- Other
CCIMGUI::getInstance()->getWindow() \\ Return GLFWwindow*
CCIMGUI::getInstance()->setShowStyleEditor(true or false)
Preview:
