GLVis  v4.2
Accurate and flexible finite element visualization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
sdl_mac.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
2 // at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3 // LICENSE and NOTICE for details. LLNL-CODE-443271.
4 //
5 // This file is part of the GLVis visualization tool and library. For more
6 // information and source code availability see https://glvis.org.
7 //
8 // GLVis is free software; you can redistribute it and/or modify it under the
9 // terms of the BSD-3 license. We welcome feedback and contributions, see file
10 // CONTRIBUTING.md for details.
11 
12 #ifndef GLVIS_SDL_MAC_HPP
13 #define GLVIS_SDL_MAC_HPP
14 #include "sdl_helper.hpp"
15 
16 class SdlCocoaPlatform final : public SdlNativePlatform
17 {
18 public:
19  void WaitEvent();
20  void SendEvent();
21 
22  void ContextUpdate();
23 
24  // TODO: Workaround methods for SDL 2.0.12, delete in follow-up PR
25  bool UseThreadWorkaround() const;
26  void ClearCurrentContext(int wnd_id);
27  void SetCurrentContext(int wnd_id);
28  void SwapWindow();
29 };
30 
31 #endif
void ClearCurrentContext(int wnd_id)
Definition: sdl_mac.mm:90
void SwapWindow()
Definition: sdl_mac.mm:111
bool UseThreadWorkaround() const
Definition: sdl_mac.mm:66
void SetCurrentContext(int wnd_id)
Definition: sdl_mac.mm:100
void SendEvent()
Definition: sdl_mac.mm:48
void ContextUpdate()
Definition: sdl_mac.mm:80
void WaitEvent()
Definition: sdl_mac.mm:35