Remove the created by comments, and replace header guards with pragma

This commit is contained in:
SeanOMik 2021-11-27 14:16:41 -05:00
parent 88fe486473
commit 7e0ecda783
14 changed files with 24 additions and 125 deletions

View File

@ -1,8 +1,3 @@
//
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#include "simpleengine/gfx/texture.h" #include "simpleengine/gfx/texture.h"
#include "simpleengine/shapes/2d/square.h" #include "simpleengine/shapes/2d/square.h"
#include <simpleengine/gfx/shader.h> #include <simpleengine/gfx/shader.h>

View File

@ -3,8 +3,7 @@
// Github: https://github.com/SeanOMik // Github: https://github.com/SeanOMik
// //
#ifndef SIMPLEENGINE_DESTRUCTABLE_H #pragma once
#define SIMPLEENGINE_DESTRUCTABLE_H
namespace simpleengine { namespace simpleengine {
class Destructable { class Destructable {
@ -19,6 +18,4 @@ namespace simpleengine {
protected: protected:
bool destroying = false; bool destroying = false;
}; };
} }
#endif //SIMPLEENGINE_DESTRUCTABLE_H

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_EVENT_H
#define SIMPLEENGINE_EVENT_H
#include "../destructable.h" #include "../destructable.h"
@ -23,6 +17,4 @@ namespace simpleengine {
protected: protected:
std::shared_ptr<GLFWwindow> window; std::shared_ptr<GLFWwindow> window;
}; };
} }
#endif //GAMEENGINE_EVENT_H

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_GAME_H
#define SIMPLEENGINE_GAME_H
#include <string> #include <string>
#include <memory> #include <memory>
@ -52,6 +46,4 @@ namespace simpleengine {
std::vector<std::shared_ptr<simpleengine::Event>> events; std::vector<std::shared_ptr<simpleengine::Event>> events;
const bool& window_resizeable; const bool& window_resizeable;
}; };
} }
#endif //GAMEENGINE_GAME_H

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_SHADER_H
#define SIMPLEENGINE_SHADER_H
#include <chrono> #include <chrono>
#include <gl/glew.h> #include <gl/glew.h>
@ -197,6 +191,4 @@ namespace simpleengine::gfx {
void setUniformUIntVec4(GLint location, glm::uvec4 vec, bool bind_shader = true); void setUniformUIntVec4(GLint location, glm::uvec4 vec, bool bind_shader = true);
void setUniformUIntVec4(const char* uniform_name, glm::uvec4 vec, bool bind_shader = true); void setUniformUIntVec4(const char* uniform_name, glm::uvec4 vec, bool bind_shader = true);
}; };
} }
#endif //SIMPLEENGINE_SHADER_H

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_TEXTURE_H
#define SIMPLEENGINE_TEXTURE_H
#include <gl/glew.h> #include <gl/glew.h>
#include <gl/gl.h> #include <gl/gl.h>
@ -61,6 +55,4 @@ namespace simpleengine::gfx {
void bind() const; void bind() const;
}; };
} }
#endif

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_VAO_H
#define SIMPLEENGINE_VAO_H
#include <gl/glew.h> #include <gl/glew.h>
#include <gl/GL.h> #include <gl/GL.h>
@ -67,6 +61,4 @@ namespace simpleengine::gfx {
glBindVertexArray(0); glBindVertexArray(0);
} }
}; };
} }
#endif

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_VBO_H
#define SIMPLEENGINE_VBO_H
#include <gl/glew.h> #include <gl/glew.h>
#include <gl/GL.h> #include <gl/GL.h>
@ -37,6 +31,4 @@ namespace simpleengine::gfx {
glBufferData(type, size - offset, data, dynamic ? GL_DYNAMIC_DRAW : GL_STATIC_DRAW); glBufferData(type, size - offset, data, dynamic ? GL_DYNAMIC_DRAW : GL_STATIC_DRAW);
} }
}; };
} }
#endif

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_RENDERABLE_H
#define SIMPLEENGINE_RENDERABLE_H
#include "event/event.h" #include "event/event.h"
@ -20,6 +14,4 @@ namespace simpleengine {
explicit Renderable(std::shared_ptr<GLFWwindow> window = nullptr) : super(window) {} explicit Renderable(std::shared_ptr<GLFWwindow> window = nullptr) : super(window) {}
virtual ~Renderable() = default; virtual ~Renderable() = default;
}; };
} }
#endif //SIMPLEENGINE_RENDERABLE_H

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_SHADER_PROGRAM_H
#define SIMPLEENGINE_SHADER_PROGRAM_H
#include <gl/glew.h> #include <gl/glew.h>
#include <gl/gl.h> #include <gl/gl.h>
@ -117,6 +111,4 @@ namespace simpleengine {
std::shared_ptr<GLuint> program; std::shared_ptr<GLuint> program;
std::vector<gfx::Shader> shaders; std::vector<gfx::Shader> shaders;
}; };
} }
#endif //SIMPLEENGINE_SHADER_PROGRAM_H

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_SQUARE_H
#define SIMPLEENGINE_SQUARE_H
#include <gl/glew.h> #include <gl/glew.h>
#include <gl/gl.h> #include <gl/gl.h>
@ -52,6 +46,4 @@ namespace simpleengine::shapes_2d {
virtual void render(std::shared_ptr<GLFWwindow> target) override; virtual void render(std::shared_ptr<GLFWwindow> target) override;
}; };
} }
#endif //SIMPLEENGINE_TRIANGLE_H

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_TRIANGLE_H
#define SIMPLEENGINE_TRIANGLE_H
#include <gl/glew.h> #include <gl/glew.h>
#include <gl/gl.h> #include <gl/gl.h>
@ -47,6 +41,4 @@ namespace simpleengine::shapes_2d {
virtual void render(std::shared_ptr<GLFWwindow> target) override; virtual void render(std::shared_ptr<GLFWwindow> target) override;
}; };
} }
#endif //SIMPLEENGINE_TRIANGLE_H

View File

@ -1,10 +1,4 @@
// #pragma once
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#ifndef SIMPLEENGINE_VERTEX_H
#define SIMPLEENGINE_VERTEX_H
#include <gl/glew.h> #include <gl/glew.h>
#include <gl/gl.h> #include <gl/gl.h>
@ -18,6 +12,4 @@ namespace simpleengine {
glm::vec3 color; glm::vec3 color;
glm::vec2 tex_coord; glm::vec2 tex_coord;
}; };
} }
#endif //SIMPLEENGINE_VERTEX_H

View File

@ -1,8 +1,3 @@
//
// Created by SeanOMik on 7/2/2020.
// Github: https://github.com/SeanOMik
//
#include "game.h" #include "game.h"
#include "event/event.h" #include "event/event.h"