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/shapes/2d/square.h"
#include <simpleengine/gfx/shader.h>

View File

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

View File

@ -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"
@ -24,5 +18,3 @@ namespace simpleengine {
std::shared_ptr<GLFWwindow> window;
};
}
#endif //GAMEENGINE_EVENT_H

View File

@ -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 <string>
#include <memory>
@ -53,5 +47,3 @@ namespace simpleengine {
const bool& window_resizeable;
};
}
#endif //GAMEENGINE_GAME_H

View File

@ -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 <chrono>
#include <gl/glew.h>
@ -198,5 +192,3 @@ namespace simpleengine::gfx {
void setUniformUIntVec4(const char* uniform_name, glm::uvec4 vec, bool bind_shader = true);
};
}
#endif //SIMPLEENGINE_SHADER_H

View File

@ -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 <gl/glew.h>
#include <gl/gl.h>
@ -62,5 +56,3 @@ namespace simpleengine::gfx {
void bind() const;
};
}
#endif

View File

@ -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 <gl/glew.h>
#include <gl/GL.h>
@ -68,5 +62,3 @@ namespace simpleengine::gfx {
}
};
}
#endif

View File

@ -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 <gl/glew.h>
#include <gl/GL.h>
@ -38,5 +32,3 @@ namespace simpleengine::gfx {
}
};
}
#endif

View File

@ -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"
@ -21,5 +15,3 @@ namespace simpleengine {
virtual ~Renderable() = default;
};
}
#endif //SIMPLEENGINE_RENDERABLE_H

View File

@ -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 <gl/glew.h>
#include <gl/gl.h>
@ -118,5 +112,3 @@ namespace simpleengine {
std::vector<gfx::Shader> shaders;
};
}
#endif //SIMPLEENGINE_SHADER_PROGRAM_H

View File

@ -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 <gl/glew.h>
#include <gl/gl.h>
@ -53,5 +47,3 @@ namespace simpleengine::shapes_2d {
virtual void render(std::shared_ptr<GLFWwindow> target) override;
};
}
#endif //SIMPLEENGINE_TRIANGLE_H

View File

@ -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 <gl/glew.h>
#include <gl/gl.h>
@ -48,5 +42,3 @@ namespace simpleengine::shapes_2d {
virtual void render(std::shared_ptr<GLFWwindow> target) override;
};
}
#endif //SIMPLEENGINE_TRIANGLE_H

View File

@ -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 <gl/glew.h>
#include <gl/gl.h>
@ -19,5 +13,3 @@ namespace simpleengine {
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 "event/event.h"