Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
diogogmatos committed Mar 3, 2024
1 parent c06244c commit e4f551e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions engine/include/Camera.hpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef CAMERA_HPP
#define CAMERA_HPP

#include <string>

#include "Camera.hpp"
#include "utils.hpp"

#include <string>

class Camera {
public:
Point position;
Expand Down
6 changes: 3 additions & 3 deletions engine/include/Configuration.hpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#ifndef CONFIGURATION_HPP
#define CONFIGURATION_HPP

#include <string>
#include <vector>

#include "Camera.hpp"
#include "Configuration.hpp"
#include "Window.hpp"

#include <vector>
#include <string>

class Configuration {
public:
Window window;
Expand Down
4 changes: 2 additions & 2 deletions engine/include/Window.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef WINDOW_HPP
#define WINDOW_HPP

#include "Window.hpp"

#include <string>

#include "Window.hpp"

class Window {
public:
float width;
Expand Down
4 changes: 2 additions & 2 deletions engine/include/parse.hpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#ifndef PARSE_HPP
#define PARSE_HPP

#include <string>

#include "../../lib/rapidxml-1.13/rapidxml.hpp"
#include "Configuration.hpp"
#include "parse.hpp"

#include <string>

Configuration parseConfig(std::string filename);

#endif // PARSE_HPP
2 changes: 1 addition & 1 deletion engine/src/Camera.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "Camera.hpp"

#include <string>
#include <sstream>
#include <string>

Camera::Camera() {
this->position = Point();
Expand Down
8 changes: 5 additions & 3 deletions engine/src/Configuration.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "Configuration.hpp"

#include <string>
#include <sstream>
#include <string>

Configuration::Configuration(Window window, Camera camera,
std::vector<std::string> models) {
Expand All @@ -20,8 +20,10 @@ std::string vectorToString(std::vector<std::string> v) {

std::string Configuration::toString() {
std::stringstream ss;
ss << "Window:\n" << window.toString() << std::endl
<< "Camera:\n" << camera.toString() << std::endl
ss << "Window:\n"
<< window.toString() << std::endl
<< "Camera:\n"
<< camera.toString() << std::endl
<< "Models: " << vectorToString(models) << std::endl;
return ss.str();
}
2 changes: 1 addition & 1 deletion engine/src/Window.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "Window.hpp"

#include <string>
#include <sstream>
#include <string>

Window::Window() {
this->width = 0;
Expand Down
2 changes: 1 addition & 1 deletion engine/src/parse.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "parse.hpp"

#include <iostream>
#include <fstream>
#include <iostream>
#include <string>

Configuration parseConfig(std::string filename) {
Expand Down

0 comments on commit e4f551e

Please sign in to comment.