diff options
Diffstat (limited to 'src/libjin/graphics/je_texture.cpp')
-rw-r--r-- | src/libjin/graphics/je_texture.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/libjin/graphics/je_texture.cpp b/src/libjin/graphics/je_texture.cpp index 7f02c84..8d9bb0a 100644 --- a/src/libjin/graphics/je_texture.cpp +++ b/src/libjin/graphics/je_texture.cpp @@ -14,7 +14,7 @@ namespace JinEngine { namespace Graphics { - +/* Texture* Texture::createTexture(const char* path) { Bitmap* bitmap = Bitmap::createBitmap(path); @@ -28,6 +28,18 @@ namespace JinEngine Texture* tex = new Texture(bitmap); return tex; } +*/ + Texture::Texture() + : Graphic() + { + } + + Texture::Texture(const char* path) + { + Bitmap* bitmap = new Bitmap(path); + new (this) Texture(bitmap); + delete bitmap; + } Texture::Texture(const Bitmap* bitmap) : Graphic(bitmap) |