mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
736cd175d5
commit
bbf33e8e4d
202 changed files with 7389 additions and 5609 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include "obj.hpp"
|
||||
|
||||
#include "commons.hpp"
|
||||
#include "../graphics/core/Model.hpp"
|
||||
#include "commons.hpp"
|
||||
|
||||
using namespace model;
|
||||
|
||||
|
|
@ -34,8 +34,7 @@ class ObjParser : BasicParser {
|
|||
} while (peekInLine() != '\n' && ++i < 3);
|
||||
|
||||
vertices.push_back(Vertex {
|
||||
coords[indices[0]], uvs[indices[1]], normals[indices[2]]
|
||||
});
|
||||
coords[indices[0]], uvs[indices[1]], normals[indices[2]]});
|
||||
}
|
||||
}
|
||||
if (peekInLine() != '\n' && hasNext()) {
|
||||
|
|
@ -51,7 +50,8 @@ class ObjParser : BasicParser {
|
|||
}
|
||||
}
|
||||
public:
|
||||
ObjParser(const std::string_view file, const std::string_view src) : BasicParser(file, src) {
|
||||
ObjParser(const std::string_view file, const std::string_view src)
|
||||
: BasicParser(file, src) {
|
||||
}
|
||||
|
||||
std::unique_ptr<Model> parse() {
|
||||
|
|
@ -111,7 +111,7 @@ public:
|
|||
}
|
||||
skipLine();
|
||||
}
|
||||
} while(hasNext());
|
||||
} while (hasNext());
|
||||
model->clean();
|
||||
return model;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue