aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--yage/data/texture.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/yage/data/texture.h b/yage/data/texture.h
index aec7b906..81b2f004 100644
--- a/yage/data/texture.h
+++ b/yage/data/texture.h
@@ -18,11 +18,13 @@ struct Texture {
GLuint id;
int width;
int height;
+ int x;
+ int y;
- Texture() : id(0), width(0), height(0) {}
+ Texture() : id(0), width(0), height(0), x(0), y(0) {}
- Texture(GLuint id_i, int width_i, int height_i)
- : id(id_i), width(width_i), height(height_i)
+ Texture(GLuint id_i, int width_i, int height_i, int x_i = 1, int y_i = 1)
+ : id(id_i), width(width_i), height(height_i), x(x_i), y(y_i)
{
}
};