diff options
author | Mateja <mail@matejamaric.com> | 2021-02-19 14:56:08 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-02-19 14:56:08 +0100 |
commit | 79048d1ad84e33d5eacbc5dfbef752948e9a787f (patch) | |
tree | 2e525742ca34452bd4a425e11d6bffdf3a48b9a2 /src/ObjModel.h | |
parent | ea5f50550ea2027043c9c3d0f5d998a1a1d336a5 (diff) | |
download | erender-79048d1ad84e33d5eacbc5dfbef752948e9a787f.tar.gz erender-79048d1ad84e33d5eacbc5dfbef752948e9a787f.zip |
Add texure loading check and loading time. Add ObjModel loadingTime.
Diffstat (limited to 'src/ObjModel.h')
-rw-r--r-- | src/ObjModel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ObjModel.h b/src/ObjModel.h index 9f66867..5ceed26 100644 --- a/src/ObjModel.h +++ b/src/ObjModel.h @@ -5,6 +5,7 @@ #include<sstream>
#include<fstream>
#include<exception>
+#include<chrono>
struct Triangle {
int p[3][3];
@@ -21,6 +22,7 @@ public: std::vector<Texture_Coordinates> uvcoo;
std::vector<Vector4f> normals;
std::vector<Triangle> faces;
+ std::chrono::duration<double> loadingTime;
ObjModel();
ObjModel(std::string fileName);
ObjModel(const ObjModel& a);
|