X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FTexture.cpp;h=db45b3d9d13d3d329dd0f13f39276421cfe5fca8;hb=7582af9fc5f909ef38509c0421e9dbea3c005764;hp=6fc8f0e1c3a142aefc65d15d1d5aa538e6d1661f;hpb=816bc61d7e14ffcb3846eadd41bd86de9174e36f;p=l2e.git diff --git a/src/graphics/Texture.cpp b/src/graphics/Texture.cpp index 6fc8f0e..db45b3d 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 math::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