From: Peter Schaefer Date: Thu, 23 Apr 2015 18:40:51 +0000 (+0200) Subject: overloaded useModelMat in IMesh X-Git-Url: https://git.leopard-lacewing.eu/?a=commitdiff_plain;h=c07b5cf405cd4184c17d201204f621d088ad562c;p=cgue_weave.git overloaded useModelMat in IMesh --- 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);