From c07b5cf405cd4184c17d201204f621d088ad562c Mon Sep 17 00:00:00 2001 From: Peter Schaefer Date: Thu, 23 Apr 2015 20:40:51 +0200 Subject: [PATCH] overloaded useModelMat in IMesh --- Weave/Graphix/Model/IMesh.cpp | 5 +++++ Weave/Graphix/Model/IMesh.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Weave/Graphix/Model/IMesh.cpp b/Weave/Graphix/Model/IMesh.cpp index 14ef3b7..5a876d0 100644 --- a/Weave/Graphix/Model/IMesh.cpp +++ b/Weave/Graphix/Model/IMesh.cpp @@ -61,6 +61,11 @@ IMesh::~IMesh() } +void IMesh::useModelMat(const mat4& _model, Shader* _shader) const +{ + Model::useModelMat(_model, _shader); +// Model::useModelMat(_model * modelMat, _shader); +} //void IMesh::drawModel(Shader* _shader, Texture* _texture, const mat4& _modelMat) const //{ diff --git a/Weave/Graphix/Model/IMesh.h b/Weave/Graphix/Model/IMesh.h index fa025ba..fa6c443 100644 --- a/Weave/Graphix/Model/IMesh.h +++ b/Weave/Graphix/Model/IMesh.h @@ -19,6 +19,8 @@ public: virtual ~IMesh(); + void useModelMat(const mat4& model, Shader* shader) const; + //void drawModel(Shader* shader, Texture* texture, const mat4& modelMat) const; //void bindShader(Shader* shader); -- 2.47.3