Adding UV texture coordinates to Surface and ImageShader.

This commit is contained in:
brunoherbelin
2020-11-12 22:07:00 +01:00
parent 7c5374552d
commit 11a58b5adf
5 changed files with 29 additions and 6 deletions

View File

@@ -27,6 +27,9 @@ public:
void draw (glm::mat4 modelview, glm::mat4 projection) override;
void accept (Visitor& v) override;
void setTextureUV(glm::vec4 uv);
glm::vec4 textureUV() const;
inline void setTextureIndex(uint t) { textureindex_ = t; }
inline uint textureIndex() const { return textureindex_; }