/*
Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
#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);