Skip to content

namkazt/cocos2d-x-ImGui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Replace AppDelegate and GLViewImpl as needed

  2. Add the ImGui callbacks through the CCIMGUI global

CCIMGUI::getInstance()->addImGUI([=](){
  ImGui::SetNextWindowPos(ImVec2(650, 20), ImGuiSetCond_FirstUseEver);
  ImGui::ShowTestWindow(&isShowDemo);
}, "Function ID");

this will auto add to pipline

  1. Remove ImGUI functions
CCIMGUI::getInstance()->removeImGUI("Function ID");
  1. Other
CCIMGUI::getInstance()->getWindow() \\ Return GLFWwindow*
CCIMGUI::getInstance()->setShowStyleEditor(true or false)

Preview:

Preview

About

New version from coi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published