"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "examples/example_apple_opengl2/main.mm" between
imgui-1.86.tar.gz and imgui-1.87.tar.gz

About: Dear ImGui is a bloat-free Graphical User Interface for C++ with minimal dependencies.

main.mm  (imgui-1.86):main.mm  (imgui-1.87)
skipping to change at line 39 skipping to change at line 39
#ifndef DEBUG #ifndef DEBUG
GLint swapInterval = 1; GLint swapInterval = 1;
[[self openGLContext] setValues:&swapInterval forParameter:NSOpenGLCPSwapInt erval]; [[self openGLContext] setValues:&swapInterval forParameter:NSOpenGLCPSwapInt erval];
if (swapInterval == 0) if (swapInterval == 0)
NSLog(@"Error: Cannot set swap interval."); NSLog(@"Error: Cannot set swap interval.");
#endif #endif
} }
-(void)initialize -(void)initialize
{ {
// Some events do not raise callbacks of AppView in some circumstances (for
example when CMD key is held down).
// This monitor taps into global event stream and captures these events.
NSEventMask eventMask = NSEventMaskKeyDown | NSEventMaskKeyUp | NSEventMaskF
lagsChanged;
[NSEvent addLocalMonitorForEventsMatchingMask:eventMask handler:^NSEvent * _
Nullable(NSEvent *event)
{
ImGui_ImplOSX_HandleEvent(event, self);
return event;
}];
// Setup Dear ImGui context // Setup Dear ImGui context
// FIXME: This example doesn't have proper cleanup... // FIXME: This example doesn't have proper cleanup...
IMGUI_CHECKVERSION(); IMGUI_CHECKVERSION();
ImGui::CreateContext(); ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO(); (void)io; ImGuiIO& io = ImGui::GetIO(); (void)io;
//io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboa rd Controls //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboa rd Controls
//io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepa d Controls //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepa d Controls
// Setup Dear ImGui style // Setup Dear ImGui style
ImGui::StyleColorsDark(); ImGui::StyleColorsDark();
 End of changes. 1 change blocks. 
12 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)