diff options
author | Mateja <mail@matejamaric.com> | 2021-02-19 15:10:53 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-02-19 15:10:53 +0100 |
commit | cf3e1771a342764ca26b2af843f173d1e994ed9f (patch) | |
tree | 46b427b725795b86e7414111720b547aacfddceb /src/ObjModel.h | |
parent | 79048d1ad84e33d5eacbc5dfbef752948e9a787f (diff) | |
download | erender-cf3e1771a342764ca26b2af843f173d1e994ed9f.tar.gz erender-cf3e1771a342764ca26b2af843f173d1e994ed9f.zip |
Add load model check. Don't render if model and/or texture is not
loaded.
Diffstat (limited to 'src/ObjModel.h')
-rw-r--r-- | src/ObjModel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ObjModel.h b/src/ObjModel.h index 5ceed26..63d49ef 100644 --- a/src/ObjModel.h +++ b/src/ObjModel.h @@ -22,6 +22,7 @@ public: std::vector<Texture_Coordinates> uvcoo;
std::vector<Vector4f> normals;
std::vector<Triangle> faces;
+ bool isLoaded;
std::chrono::duration<double> loadingTime;
ObjModel();
ObjModel(std::string fileName);
|