aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/graphics/texture.cpp')
-rw-r--r--src/libjin/graphics/texture.cpp56
1 files changed, 28 insertions, 28 deletions
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