Skip to content

Commit

Permalink
Update gitignore and grud in header file
Browse files Browse the repository at this point in the history
Signed-off-by: ZhuohaoHe <zhuohao.he@outlook.com>
  • Loading branch information
ZzzhHe committed Aug 26, 2024
1 parent 787740c commit 0703564
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ tools/opensbi/build
.idea
3rd
Doxyfile
include/config.h
src/include/config.h
38 changes: 0 additions & 38 deletions src/include/config.h

This file was deleted.

5 changes: 4 additions & 1 deletion src/include/face.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#ifndef SIMPLERENDER_SRC_INCLUDE_FACE_HPP_
#define SIMPLERENDER_SRC_INCLUDE_FACE_HPP_

#include <array>

Expand Down Expand Up @@ -76,3 +77,5 @@ class Face {
};

} // namespace simple_renderer

#endif
7 changes: 5 additions & 2 deletions src/include/material.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#ifndef SIMPLERENDER_SRC_INCLUDE_MATERIAL_HPP_
#define SIMPLERENDER_SRC_INCLUDE_MATERIAL_HPP_

#include <math.hpp>

Expand Down Expand Up @@ -36,4 +37,6 @@ class Material {
Vector3f specular;
};

} // namespace simple_renderer
} // namespace simple_renderer

#endif
5 changes: 4 additions & 1 deletion src/include/math.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#ifndef SIMPLERENDER_SRC_INCLUDE_MATH_HPP_
#define SIMPLERENDER_SRC_INCLUDE_MATH_HPP_

#include <glm/glm.hpp>

Expand Down Expand Up @@ -56,3 +57,5 @@ struct fmt::formatter<simple_renderer::Matrix4f> : fmt::formatter<std::string> {
return fmt::format_to(ctx.out(), "\n{}", matrix_str);
}
};

#endif
7 changes: 5 additions & 2 deletions src/include/vertex.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#pragma once
#ifndef SIMPLERENDER_SRC_INCLUDE_VERTEX_HPP_
#define SIMPLERENDER_SRC_INCLUDE_VERTEX_HPP_

#include <math.hpp>

Expand Down Expand Up @@ -63,4 +64,6 @@ class Vertex {
Color color_;
};

} // namespace simple_renderer
} // namespace simple_renderer

#endif

0 comments on commit 0703564

Please sign in to comment.