Skip to content

Commit

Permalink
chore: formating
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioJPinto committed Mar 5, 2024
1 parent 3ddc9c5 commit 4b30802
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion engine/include/Camera.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Camera {
Camera(Point position, Point lookAt, Point up, int fov, float near,
float far);

// std::string toString();
// std::string toString();
};

#endif // CAMERA_HPP
2 changes: 0 additions & 2 deletions engine/src/draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "draw.hpp"
#include "utils.hpp"


void drawTriangles(const std::vector<Point>& points) {
glBegin(GL_TRIANGLES);
for (size_t i = 0; i < points.size(); i += 3) {
Expand All @@ -24,4 +23,3 @@ void drawTriangles(const std::vector<Point>& points) {
}
glEnd();
}

6 changes: 2 additions & 4 deletions engine/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ void processSpecialKeys(int key, int xx, int yy) {
}

void setupConfig(char* arg) {

std::string filename;
filename.assign(arg);
c = parseConfig(filename);
for(std::string file : c.models) {
for (std::string file : c.models) {
std::string dir = MODELS;
dir.append(file);

Expand All @@ -114,8 +113,7 @@ void setupConfig(char* arg) {
}

int main(int argc, char** argv) {

setupConfig(argv[1]);
setupConfig(argv[1]);

// put GLUT�s init here
glutInit(&argc, argv);
Expand Down

0 comments on commit 4b30802

Please sign in to comment.