Improvements
- Exception handling removed.
- Improvements and clean code.
- It is safe to call any function, even in a loop (conditions are now checked).
- There is now support for a custom window proc, defining g_cwnd_proc (don't forget to check ImGui_ImplWin32_WndProcHandler and reset the device in the WM_SIZE case. ( Check the template on the home page )
- If the handle returned to CreateWindowExA is nullptr, the loop will exit.
Breaking changes
- It is no longer necessary to call start_window (), the constructor is responsible for creating the window and creating the context of directx and dear imgui.
-
Many functions have been removed from the code for the user, now only the following are possible:
bool process_message();
bool imgui_start_frame();
bool imgui_end_frame();
void set_background_color(int,int,int);
bool get_vsync_state();
MSG& get_msg();
Gallery