X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FTexture.cpp;h=f53c82fd7030f6219332e5368ae1d435b4a4481e;hb=e518ac67cf94e244df16078dcbc536e6b659e758;hp=6fc8f0e1c3a142aefc65d15d1d5aa538e6d1661f;hpb=816bc61d7e14ffcb3846eadd41bd86de9174e36f;p=l2e.git diff --git a/src/graphics/Texture.cpp b/src/graphics/Texture.cpp index 6fc8f0e..f53c82f 100644 --- a/src/graphics/Texture.cpp +++ b/src/graphics/Texture.cpp @@ -1,20 +1,23 @@ -/* - * Texture.cpp - * - * Created on: Oct 21, 2012 - * Author: holy - */ - #include "Texture.h" +#include "../loader/Interpreter.h" +#include "../loader/TypeDescription.h" #include "../sdl/utility.h" using geometry::Vector; +using loader::FieldDescription; +using loader::Interpreter; +using loader::TypeDescription; namespace graphics { -Texture::Texture() -: surface(0) { +Texture::Texture( + SDL_Surface *surface, + const Vector &size, + const Vector &offset) +: surface(surface) +, size(size) +, offset(offset) { } @@ -57,4 +60,21 @@ void Texture::Render(SDL_Surface *dest, const Vector &from, const Vector