Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
window_exit_functor.h
Go to the documentation of this file.
1 #ifndef WINDOW_EXIT_FUNCTOR_H
2 #define WINDOW_EXIT_FUNCTOR_H
3 #define GLFW_INCLUDE_GLCOREARB
4 #include <GLFW/glfw3.h>
5 
6 namespace Graphics {
8  public:
9  bool operator()(GLFWwindow* window) {
10  return (glfwGetKey(window, GLFW_KEY_Q) == GLFW_PRESS && glfwGetKey(window, GLFW_KEY_LEFT_SUPER) == GLFW_PRESS) || glfwWindowShouldClose(window);
11  }
12  };
13 }
14 
15 #endif
Definition: window_exit_functor.h:7
bool operator()(GLFWwindow *window)
Definition: window_exit_functor.h:9