|
|
|
|
@ -136,7 +136,6 @@ bool GlfwApplication::tryCreateContext(const Configuration& configuration) {
|
|
|
|
|
glfwSetScrollCallback(_window, staticMouseScrollEvent); |
|
|
|
|
|
|
|
|
|
glfwMakeContextCurrent(_window); |
|
|
|
|
glfwSwapInterval(1); |
|
|
|
|
|
|
|
|
|
/* Return true if the initialization succeeds */ |
|
|
|
|
return _context->tryCreate(); |
|
|
|
|
@ -147,6 +146,10 @@ GlfwApplication::~GlfwApplication() {
|
|
|
|
|
glfwTerminate(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GlfwApplication::setSwapInterval(const Int interval) { |
|
|
|
|
glfwSwapInterval(interval); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int GlfwApplication::exec() { |
|
|
|
|
while(!glfwWindowShouldClose(_window)) { |
|
|
|
|
if(_needsRedraw) { |
|
|
|
|
|