style: naming convention

This commit is contained in:
2025-10-13 16:22:57 +02:00
parent f981cee4e0
commit f1a24f576b
16 changed files with 114 additions and 113 deletions

View File

@@ -8,31 +8,31 @@ class Camera : public Entity {
public:
Camera();
const glm::mat4& getProjection() const
[[nodiscard]] const glm::mat4& projection() const
{
return projection_;
}
void setProjection(const glm::mat4& proj)
void set_projection(const glm::mat4& proj)
{
projection_ = proj;
}
const glm::ivec4& getViewport() const
[[nodiscard]] const glm::ivec4& viewport() const
{
return viewport_;
}
void setViewport(const glm::ivec4& vp)
void set_viewport(const glm::ivec4& vp)
{
viewport_ = vp;
}
const glm::vec3& getClearColor() const
[[nodiscard]] const glm::vec3& clear_color() const
{
return clearColor_;
return clear_color_;
}
void setClearColor(const glm::vec3& color)
void set_clear_color(const glm::vec3& color)
{
clearColor_ = color;
clear_color_ = color;
}
void prepare();
@@ -40,7 +40,7 @@ public:
private:
glm::mat4 projection_;
glm::ivec4 viewport_;
glm::vec3 clearColor_;
glm::vec3 clear_color_;
};
#endif // CAMERA_H_