]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Texture.h
removed stupid file headers that eclipse put in
[l2e.git] / src / graphics / Texture.h
index 3b6357eef477525f2b9632ca3bc8b0be291eb6da..ef4256b83228b39e5e0301fc80fc85f2070e214a 100644 (file)
@@ -1,10 +1,3 @@
-/*
- * Texture.h
- *
- *  Created on: Oct 21, 2012
- *      Author: holy
- */
-
 #ifndef GRAPHICS_TEXTURE_H_
 #define GRAPHICS_TEXTURE_H_
 
@@ -17,7 +10,10 @@ namespace graphics {
 class Texture {
 
 public:
-       Texture();
+       explicit Texture(
+                       SDL_Surface *surface = 0,
+                       const geometry::Vector<int> &size = geometry::Vector<int>(),
+                       const geometry::Vector<int> &offset = geometry::Vector<int>());
        ~Texture();
 
 public:
@@ -25,13 +21,13 @@ public:
 
 public:
        void SetSurface(SDL_Surface *s) { surface = s; }
-       void SetOffset(const geometry::Vector<int> &o) { offset = o; }
        void SetSize(const geometry::Vector<int> &s) { size = s; }
+       void SetOffset(const geometry::Vector<int> &o) { offset = o; }
 
 private:
        SDL_Surface *surface;
-       geometry::Vector<int> offset;
        geometry::Vector<int> size;
+       geometry::Vector<int> offset;
 
 };