diff --git a/examples/dev_testing/src/main.cpp b/examples/dev_testing/src/main.cpp index 8a556ea..c29b666 100644 --- a/examples/dev_testing/src/main.cpp +++ b/examples/dev_testing/src/main.cpp @@ -1,8 +1,3 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - #include "simpleengine/gfx/texture.h" #include "simpleengine/shapes/2d/square.h" #include diff --git a/include/simpleengine/destructable.h b/include/simpleengine/destructable.h index 868cd22..5a8553a 100644 --- a/include/simpleengine/destructable.h +++ b/include/simpleengine/destructable.h @@ -3,8 +3,7 @@ // Github: https://github.com/SeanOMik // -#ifndef SIMPLEENGINE_DESTRUCTABLE_H -#define SIMPLEENGINE_DESTRUCTABLE_H +#pragma once namespace simpleengine { class Destructable { @@ -19,6 +18,4 @@ namespace simpleengine { protected: bool destroying = false; }; -} - -#endif //SIMPLEENGINE_DESTRUCTABLE_H \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/event/event.h b/include/simpleengine/event/event.h index fdeec72..9f24cdf 100644 --- a/include/simpleengine/event/event.h +++ b/include/simpleengine/event/event.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_EVENT_H -#define SIMPLEENGINE_EVENT_H +#pragma once #include "../destructable.h" @@ -23,6 +17,4 @@ namespace simpleengine { protected: std::shared_ptr window; }; -} - -#endif //GAMEENGINE_EVENT_H \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/game.h b/include/simpleengine/game.h index 71ecb35..6830123 100644 --- a/include/simpleengine/game.h +++ b/include/simpleengine/game.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_GAME_H -#define SIMPLEENGINE_GAME_H +#pragma once #include #include @@ -52,6 +46,4 @@ namespace simpleengine { std::vector> events; const bool& window_resizeable; }; -} - -#endif //GAMEENGINE_GAME_H +} \ No newline at end of file diff --git a/include/simpleengine/gfx/shader.h b/include/simpleengine/gfx/shader.h index aa5d501..48752da 100644 --- a/include/simpleengine/gfx/shader.h +++ b/include/simpleengine/gfx/shader.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_SHADER_H -#define SIMPLEENGINE_SHADER_H +#pragma once #include #include @@ -197,6 +191,4 @@ namespace simpleengine::gfx { void setUniformUIntVec4(GLint location, glm::uvec4 vec, bool bind_shader = true); void setUniformUIntVec4(const char* uniform_name, glm::uvec4 vec, bool bind_shader = true); }; -} - -#endif //SIMPLEENGINE_SHADER_H \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/gfx/texture.h b/include/simpleengine/gfx/texture.h index 04cf104..f467cdd 100644 --- a/include/simpleengine/gfx/texture.h +++ b/include/simpleengine/gfx/texture.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_TEXTURE_H -#define SIMPLEENGINE_TEXTURE_H +#pragma once #include #include @@ -61,6 +55,4 @@ namespace simpleengine::gfx { void bind() const; }; -} - -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/gfx/vao.h b/include/simpleengine/gfx/vao.h index a796385..975c17c 100644 --- a/include/simpleengine/gfx/vao.h +++ b/include/simpleengine/gfx/vao.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_VAO_H -#define SIMPLEENGINE_VAO_H +#pragma once #include #include @@ -67,6 +61,4 @@ namespace simpleengine::gfx { glBindVertexArray(0); } }; -} - -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/gfx/vbo.h b/include/simpleengine/gfx/vbo.h index 1b61f67..02bc18a 100644 --- a/include/simpleengine/gfx/vbo.h +++ b/include/simpleengine/gfx/vbo.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_VBO_H -#define SIMPLEENGINE_VBO_H +#pragma once #include #include @@ -37,6 +31,4 @@ namespace simpleengine::gfx { glBufferData(type, size - offset, data, dynamic ? GL_DYNAMIC_DRAW : GL_STATIC_DRAW); } }; -} - -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/renderable.h b/include/simpleengine/renderable.h index 7621bb1..ceccdcd 100644 --- a/include/simpleengine/renderable.h +++ b/include/simpleengine/renderable.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_RENDERABLE_H -#define SIMPLEENGINE_RENDERABLE_H +#pragma once #include "event/event.h" @@ -20,6 +14,4 @@ namespace simpleengine { explicit Renderable(std::shared_ptr window = nullptr) : super(window) {} virtual ~Renderable() = default; }; -} - -#endif //SIMPLEENGINE_RENDERABLE_H \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/shader_program.h b/include/simpleengine/shader_program.h index 5d29b79..12ad2b9 100644 --- a/include/simpleengine/shader_program.h +++ b/include/simpleengine/shader_program.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_SHADER_PROGRAM_H -#define SIMPLEENGINE_SHADER_PROGRAM_H +#pragma once #include #include @@ -117,6 +111,4 @@ namespace simpleengine { std::shared_ptr program; std::vector shaders; }; -} - -#endif //SIMPLEENGINE_SHADER_PROGRAM_H \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/shapes/2d/square.h b/include/simpleengine/shapes/2d/square.h index b2c9fec..33d4bf5 100644 --- a/include/simpleengine/shapes/2d/square.h +++ b/include/simpleengine/shapes/2d/square.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_SQUARE_H -#define SIMPLEENGINE_SQUARE_H +#pragma once #include #include @@ -52,6 +46,4 @@ namespace simpleengine::shapes_2d { virtual void render(std::shared_ptr target) override; }; -} - -#endif //SIMPLEENGINE_TRIANGLE_H \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/shapes/2d/triangle.h b/include/simpleengine/shapes/2d/triangle.h index ae65aae..5379c17 100644 --- a/include/simpleengine/shapes/2d/triangle.h +++ b/include/simpleengine/shapes/2d/triangle.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_TRIANGLE_H -#define SIMPLEENGINE_TRIANGLE_H +#pragma once #include #include @@ -47,6 +41,4 @@ namespace simpleengine::shapes_2d { virtual void render(std::shared_ptr target) override; }; -} - -#endif //SIMPLEENGINE_TRIANGLE_H \ No newline at end of file +} \ No newline at end of file diff --git a/include/simpleengine/vertex.h b/include/simpleengine/vertex.h index 85b8702..af98173 100644 --- a/include/simpleengine/vertex.h +++ b/include/simpleengine/vertex.h @@ -1,10 +1,4 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - -#ifndef SIMPLEENGINE_VERTEX_H -#define SIMPLEENGINE_VERTEX_H +#pragma once #include #include @@ -18,6 +12,4 @@ namespace simpleengine { glm::vec3 color; glm::vec2 tex_coord; }; -} - -#endif //SIMPLEENGINE_VERTEX_H \ No newline at end of file +} \ No newline at end of file diff --git a/src/game.cpp b/src/game.cpp index 349fe30..11c475d 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1,8 +1,3 @@ -// -// Created by SeanOMik on 7/2/2020. -// Github: https://github.com/SeanOMik -// - #include "game.h" #include "event/event.h"