From 160e1299ef3d95f8e8c48706d7f61dd3dc6c6b60 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 11 Feb 2020 11:29:07 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=20tab=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/graphics/texture.cpp | 56 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'src/libjin/graphics/texture.cpp') diff --git a/src/libjin/graphics/texture.cpp b/src/libjin/graphics/texture.cpp index ba8a33a..45432d1 100644 --- a/src/libjin/graphics/texture.cpp +++ b/src/libjin/graphics/texture.cpp @@ -12,34 +12,34 @@ using namespace JinEngine::Math; namespace JinEngine { - namespace Graphics - { - - Texture::Texture() - : Graphic() - { - ++gl.getStats().textures; - } - - Texture::Texture(const char* path) - { - Bitmap* bitmap = new Bitmap(path); - new (this) Texture(bitmap); - delete bitmap; - } - - Texture::Texture(const Bitmap* bitmap) - : Graphic(bitmap) - { - ++gl.getStats().textures; - } - - Texture::~Texture() - { - --gl.getStats().textures; - } - - } // namespace Graphics + namespace Graphics + { + + Texture::Texture() + : Graphic() + { + ++gl.getStats().textures; + } + + Texture::Texture(const char* path) + { + Bitmap* bitmap = new Bitmap(path); + new (this) Texture(bitmap); + delete bitmap; + } + + Texture::Texture(const Bitmap* bitmap) + : Graphic(bitmap) + { + ++gl.getStats().textures; + } + + Texture::~Texture() + { + --gl.getStats().textures; + } + + } // namespace Graphics } // namespace JinEngine #endif // defined(jin_graphics) \ No newline at end of file -- cgit v1.1-26-g67d0