forked from ocornut/imgui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OSX: Various tweaks to imgui_impl_osx courtesy of @warrenm + fix NewF…
…rame position which has been moved recently master. (ocornut#1873)
- Loading branch information
Showing
3 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters