Comentado mensajes de log en callbacks

parent b2fbdb1f
Showing with 7 additions and 5 deletions
......@@ -28,28 +28,28 @@ void window_refresh_callback(GLFWwindow *window) {
glfwSwapBuffers(window);
PAG::log << "Refresh callback called" << std::endl;
//PAG::log << "Refresh callback called" << std::endl;
}
void framebuffer_size_callback(GLFWwindow *window, int width, int height) {
PAG::Renderer::getInstance().setViewport(width, height);
PAG::log << "Resize callback called. New size: " << width << ", " << height << std::endl;
//PAG::log << "Resize callback called. New size: " << width << ", " << height << std::endl;
}
void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods) {
if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) {
glfwSetWindowShouldClose(window, GLFW_TRUE);
}
PAG::log << "Key callback called" << std::endl;
//PAG::log << "Key callback called" << std::endl;
}
void mouse_button_callback(GLFWwindow *window, int button, int action, int mods) {
if (action == GLFW_PRESS) {
PAG::log << "Pulsado el botón: mouse " << button << std::endl;
//PAG::log << "Pulsado el botón: mouse " << button << std::endl;
PAG::GUI::getInstance().addMouseButtonEvent(button, true);
} else if (action == GLFW_RELEASE) {
PAG::log << "Soltado el botón: mouse " << button << std::endl;
//PAG::log << "Soltado el botón: mouse " << button << std::endl;
PAG::GUI::getInstance().addMouseButtonEvent(button, false);
}
}
......@@ -57,9 +57,11 @@ void mouse_button_callback(GLFWwindow *window, int button, int action, int mods)
void scroll_callback(GLFWwindow *window, double xoffset, double yoffset) {
static double position_in_gradient = 0;
/*
PAG::log << "Movida la rueda del raton "
<< xoffset << " unidades en horizontal y "
<< yoffset << " unidades en vertical" << std::endl;
*/
}
int main() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment