Format code with clang-format.

This commit is contained in:
2021-07-04 13:12:34 +02:00
parent 9937a36526
commit f816f5f565
37 changed files with 470 additions and 465 deletions

View File

@@ -1,10 +1,10 @@
#include <iostream>
#include <glad/glad.h>
#include <iostream>
#include "Window.h"
#include "eventActions.h"
#include "defines.h"
#include "Helper.h"
#include "Window.h"
#include "defines.h"
#include "eventActions.h"
Window::Window()
{
@@ -76,7 +76,7 @@ Window::Window()
glViewport(0, 0, width, height);
// Tell GLFW which function to call when window is resized
//glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);
// glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);
}
Window::~Window()
@@ -102,7 +102,6 @@ void Window::updateWindowDimensions()
glViewport(0, 0, width, height);
}
void Window::setCatchedCursor(bool value)
{
if (value) {
@@ -148,7 +147,7 @@ void Window::framebuffer_size_callback(GLFWwindow *window, int width, int height
glViewport(0, 0, width, height);
}
GLFWwindow* Window::getGLFWwindow()
GLFWwindow *Window::getGLFWwindow()
{
return window;
}
@@ -165,7 +164,7 @@ int Window::getWindowHeight()
float Window::getWindowAspectRatio()
{
return (float) width / (float) height;
return (float)width / (float)height;
}
bool Window::getMouseIsCatched()