X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FTexture.cpp;h=2bb0e97f2113529421bcd5ee6ac3b1c0f2b3fabc;hb=c806ec0b9fde2cd3e8313b4a2c38e62a0ff14365;hp=6fc8f0e1c3a142aefc65d15d1d5aa538e6d1661f;hpb=816bc61d7e14ffcb3846eadd41bd86de9174e36f;p=l2e.git diff --git a/src/graphics/Texture.cpp b/src/graphics/Texture.cpp index 6fc8f0e..2bb0e97 100644 --- a/src/graphics/Texture.cpp +++ b/src/graphics/Texture.cpp @@ -13,8 +13,13 @@ using geometry::Vector; namespace graphics { -Texture::Texture() -: surface(0) { +Texture::Texture( + SDL_Surface *surface, + const Vector &size, + const Vector &offset) +: surface(surface) +, size(size) +, offset(offset) { }