diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b492c95 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[*.{h,hpp,c,cpp}] +indent_style = tab +indent_size = 4 diff --git a/src/main.cpp b/src/main.cpp index 7308050..ad92e6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -228,11 +228,11 @@ void keyUp(unsigned char key, int x, int y) { int main(int argc, char** argv) { - glutInit(&argc, argv); - glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); - glutInitWindowSize(600, 600); - glutInitWindowPosition(glutGet(GLUT_SCREEN_WIDTH) * 0.6, (glutGet(GLUT_SCREEN_HEIGHT) - 600) * 0.5); - glutCreateWindow("Pong"); + glutInit(&argc, argv); + glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); + glutInitWindowSize(600, 600); + glutInitWindowPosition(glutGet(GLUT_SCREEN_WIDTH) * 0.6, (glutGet(GLUT_SCREEN_HEIGHT) - 600) * 0.5); + glutCreateWindow("Pong"); glutSetKeyRepeat(GLUT_KEY_REPEAT_OFF); glutKeyboardFunc(keyDown); glutKeyboardUpFunc(keyUp); diff --git a/src/pixel_wise.h b/src/pixel_wise.h index 70cc066..ac0d3e9 100644 --- a/src/pixel_wise.h +++ b/src/pixel_wise.h @@ -86,4 +86,4 @@ namespace PW { inline std::array nr(GLfloat x, GLfloat y) { return PW::toRelative(x, y, PW::NONE_RIGHT); } -} \ No newline at end of file +} diff --git a/src/utils.hpp b/src/utils.hpp index 81af62e..d28a929 100644 --- a/src/utils.hpp +++ b/src/utils.hpp @@ -13,4 +13,4 @@ namespace Utils { constexpr T toRad(T deg) { return deg * PI / 180; } -} \ No newline at end of file +}