X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FCanvas.h;h=021bcedff936c4f5d2655ff977c2b9f80e26592b;hb=03b142b877e19a2355e1a79e279e024922d44655;hp=f399b364dca60a8290ae9a5f5713b55c5abc1d9b;hpb=4a51a83bdff30d1e25a5867cfb19936adc0034b1;p=orbi.git diff --git a/src/graphics/Canvas.h b/src/graphics/Canvas.h index f399b36..021bced 100644 --- a/src/graphics/Canvas.h +++ b/src/graphics/Canvas.h @@ -5,6 +5,7 @@ #include "Texture.h" #include "Vector.h" +#include #include @@ -30,6 +31,9 @@ public: Texture CreateStaticTexture(Vector size); Texture LoadTexture(const char *file); + Texture LoadTexture(const std::string &file) { + return LoadTexture(file.c_str()); + } void Copy(Texture &, Vector to); void Copy(Texture &, Rect clip, Vector to);