--- a/Texture.cpp Tue Dec 26 15:41:07 2023 +0100
+++ b/Texture.cpp Tue Dec 26 23:46:45 2023 +0100
@@ -27,6 +27,7 @@
std::string fileName;
int width;
int height;
+ GLfloat scale = 1.;
};
Texture::Texture(
@@ -64,6 +65,14 @@
return (GLfloat) impl->width / (GLfloat) impl->height;
}
+GLfloat Texture::getScale() const {
+ return impl->scale;
+}
+
+void Texture::setScale(GLfloat scale) {
+ impl->scale = scale;
+}
+
void Texture::update(int width, int height, const Buffer& img) {
impl->width = width;
impl->height = height;