style: naming convention
This commit is contained in:
		
							
								
								
									
										18
									
								
								src/camera.h
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								src/camera.h
									
									
									
									
									
								
							| @@ -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_ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user