Examples: Added imgui_impl_osx.mm bindings (#1870, #281)

This commit is contained in:
omar
2018-06-11 10:19:17 +02:00
parent 6f7b7807ad
commit fac0c801da
8 changed files with 866 additions and 6 deletions

11
examples/imgui_impl_osx.h Normal file
View File

@@ -0,0 +1,11 @@
// ImGui Platform Binding for: OSX / Cocoa
// This needs to be used along with a Renderer (e.g. OpenGL2, OpenGL3, Vulkan..)
@class NSEvent;
@class NSOpenGLView;
// FIXME-OSX: Try replacing with NSView
IMGUI_API bool ImGui_ImplOSX_Init();
IMGUI_API void ImGui_ImplOSX_Shutdown();
IMGUI_API void ImGui_ImplOSX_NewFrame(NSOpenGLView* view);
IMGUI_API bool ImGui_ImplOSX_HandleEvent(NSEvent* event);