]> git.jsancho.org Git - lugaru.git/blobdiff - Source/ImageIO.h
Stopped using Account pointers, and removed general difficulty setting (difficulty...
[lugaru.git] / Source / ImageIO.h
index f59a0a84e593effb2b8fcd24ed0fafcdb8e3ea38..b3d0a498c66ae4165508b27cb8362508c6527ffe 100644 (file)
@@ -1,5 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
 
 This file is part of Lugaru.
 
@@ -40,14 +41,20 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #endif
 
 /**> DATA STRUCTURES <**/
-typedef struct ImageRec {
+class ImageRec {
+public:
     GLubyte *data; // Image Data (Up To 32 Bits)
     GLuint bpp; // Image Color Depth In Bits Per Pixel.
     GLuint sizeX;
     GLuint sizeY;
-} ImageRec;
+    ImageRec();
+    ~ImageRec();
+private:
+    /* Make sure this class cannot be copied to avoid memory problems */
+    ImageRec(ImageRec const &);
+    ImageRec& operator=(ImageRec const &);
+};
 
-bool upload_image(const char* filePath);
 bool load_image(const char * fname, ImageRec & tex);
 bool save_screenshot(const char * fname);