aboutsummaryrefslogtreecommitdiff
path: root/src/ObjModel.h
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-02-19 15:10:53 +0100
committerMateja <mail@matejamaric.com>2021-02-19 15:10:53 +0100
commitcf3e1771a342764ca26b2af843f173d1e994ed9f (patch)
tree46b427b725795b86e7414111720b547aacfddceb /src/ObjModel.h
parent79048d1ad84e33d5eacbc5dfbef752948e9a787f (diff)
downloaderender-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.h1
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);