]> git.jsancho.org Git - lugaru.git/blobdiff - Source/ImageIO.h
Got rid of global texture var. Calling load_image directly
[lugaru.git] / Source / ImageIO.h
index 7fc2ff96f44f7aa1fe236b8a6494dc67d391b7f1..b3d0a498c66ae4165508b27cb8362508c6527ffe 100644 (file)
@@ -41,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);