]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Texture.cpp
changed Frame implementation
[l2e.git] / src / graphics / Texture.cpp
index 6fc8f0e1c3a142aefc65d15d1d5aa538e6d1661f..2bb0e97f2113529421bcd5ee6ac3b1c0f2b3fabc 100644 (file)
@@ -13,8 +13,13 @@ using geometry::Vector;
 
 namespace graphics {
 
-Texture::Texture()
-: surface(0) {
+Texture::Texture(
+               SDL_Surface *surface,
+               const Vector<int> &size,
+               const Vector<int> &offset)
+: surface(surface)
+, size(size)
+, offset(offset) {
 
 }