Advertisement
vivienneanthony

hmmmm

Jan 23rd, 2016
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1.  
  2. //// struct for panels
  3. struct PanelTab
  4. {
  5.     const char *tabName;                // should be the tab name
  6.     void (*handler)(void);                  /// should be the function
  7. };
  8.  
  9. //In Cpp
  10. PanelTab RightFrameImGuiUI::tabNames[] = {{"Inspector",RightFrameImGuiUI::ShowSettingsPanel},
  11.                                          {"ViewSettings", RightFrameImGuiUI::ShowSettingsPanel}};
  12.  
  13.  
  14.     void (*DoPanel)() = tabNames[0].handler;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement