Nymph Game Engine
Chaiscript based Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
•
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 {
7
class
WindowExitFunctor
{
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
Graphics::WindowExitFunctor
Definition:
window_exit_functor.h:7
Graphics::WindowExitFunctor::operator()
bool operator()(GLFWwindow *window)
Definition:
window_exit_functor.h:9
src
graphics
window_exit_functor.h
Generated on Sun Jan 14 2018 21:47:00 for Nymph Game Engine by
1.8.6