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 {
@ -19,6 +18,4 @@ namespace simpleengine {
protected:
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"
@ -23,6 +17,4 @@ namespace simpleengine {
protected:
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>
@ -52,6 +46,4 @@ namespace simpleengine {
std::vector<std::shared_ptr<simpleengine::Event>> events;
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>
@ -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
}

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>
@ -61,6 +55,4 @@ 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>
@ -67,6 +61,4 @@ namespace simpleengine::gfx {
glBindVertexArray(0);
}
};
}
#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>
@ -37,6 +31,4 @@ namespace simpleengine::gfx {
glBufferData(type, size - offset, data, dynamic ? GL_DYNAMIC_DRAW : GL_STATIC_DRAW);
}
};
}
#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"
@ -20,6 +14,4 @@ namespace simpleengine {
explicit Renderable(std::shared_ptr<GLFWwindow> window = nullptr) : super(window) {}
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>
@ -117,6 +111,4 @@ namespace simpleengine {
std::shared_ptr<GLuint> program;
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>
@ -52,6 +46,4 @@ 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>
@ -47,6 +41,4 @@ 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>
@ -18,6 +12,4 @@ namespace simpleengine {
glm::vec3 color;
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"