Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //// struct for panels
- struct PanelTab
- {
- const char *tabName; // should be the tab name
- void (*handler)(void); /// should be the function
- };
- //In Cpp
- PanelTab RightFrameImGuiUI::tabNames[] = {{"Inspector",RightFrameImGuiUI::ShowSettingsPanel},
- {"ViewSettings", RightFrameImGuiUI::ShowSettingsPanel}};
- void (*DoPanel)() = tabNames[0].handler;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement