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:
parent
0d7e779b37
commit
deb7aa29cd
3 changed files with 18 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue