Blackcomb  prealpha
Engine-ish
Wrapper.h
1 #ifndef IMGUITEST_IMGUIWRAPPER_H
2 #define IMGUITEST_IMGUIWRAPPER_H
3 
4 #include <blackcomb/imgui/imgui.h>
5 #include <blackcomb/imgui/imgui_impl_glfw.h>
6 #include <blackcomb/imgui/imgui_impl_opengl3.h>
7 
8 namespace blackcomb::imgui {
14  class Wrapper {
15  public:
16  static void createContext();
17  static void simpleConfig();
18  static void initialize(GLFWwindow* windowPtr, const char* glslVersion = nullptr, bool installCallbacks = true);
19  static void beginFrame();
20  static void render();
21  static void destroy();
22  };
23 }
24 
25 
26 #endif //IMGUITEST_IMGUIWRAPPER_H
static void initialize(GLFWwindow *windowPtr, const char *glslVersion=nullptr, bool installCallbacks=true)
Initialize the ImGui context and bindings.
Definition: Wrapper.cpp:41
static void simpleConfig()
Sets up a simple, workable default configuration if you don&#39;t want to bother with it yourself...
Definition: Wrapper.cpp:19
static void createContext()
Creates the ImGui context.
Definition: Wrapper.cpp:10
Definition: Wrapper.h:8
static void beginFrame()
Should be called each frame you are drawing an imgui object, before rendering anything.
Definition: Wrapper.cpp:51
static void destroy()
Should be called when you are done with ImGui, probably in AppBase::destroy.
Definition: Wrapper.cpp:80
static void render()
Should be called when you are done drawing all of your ImGui objects.
Definition: Wrapper.cpp:62
A conveniece wrapper for Dear ImGui&#39;s initialization and destruction.
Definition: Wrapper.h:14