1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

OSX: Various tweaks to imgui_impl_osx courtesy of @warrenm + fix NewFrame position which has been moved recently master. (#1873)

This commit is contained in:
omar 2018-07-04 13:24:16 +02:00
parent 0d7e779b37
commit deb7aa29cd
3 changed files with 18 additions and 17 deletions

View file

@ -1,11 +1,11 @@
// ImGui Platform Binding for: OSX / Cocoa
// This needs to be used along with a Renderer (e.g. OpenGL2, OpenGL3, Vulkan..)
// This needs to be used along with a Renderer (e.g. OpenGL2, OpenGL3, Vulkan, Metal..)
@class NSEvent;
@class NSOpenGLView;
@class NSVew;
// 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);
IMGUI_API void ImGui_ImplOSX_NewFrame(NSView *_Nonnull view);
IMGUI_API bool ImGui_ImplOSX_HandleEvent(NSEvent *_Nonnull event, NSView *_Nullable view);