X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FUtils%2FImageIO.hpp;h=4683b0a7eda24bd8f29bdf09a0257d0d89944b2d;hp=6b420ddcc98c84527cb9afef8185d1e59a53fd71;hb=6a8cb464330e92163c8feaf101b8b5837c973bba;hpb=5fca41ab430df85d6dd620a7f4130df01bc1430f diff --git a/Source/Utils/ImageIO.hpp b/Source/Utils/ImageIO.hpp index 6b420dd..4683b0a 100644 --- a/Source/Utils/ImageIO.hpp +++ b/Source/Utils/ImageIO.hpp @@ -40,22 +40,23 @@ along with Lugaru. If not, see . #endif /**> DATA STRUCTURES <**/ -class ImageRec { +class ImageRec +{ public: - GLubyte *data; // Image Data (Up To 32 Bits) - GLuint bpp; // Image Color Depth In Bits Per Pixel. + GLubyte* data; // Image Data (Up To 32 Bits) + GLuint bpp; // Image Color Depth In Bits Per Pixel. GLuint sizeX; GLuint sizeY; ImageRec(); ~ImageRec(); + private: /* Make sure this class cannot be copied to avoid memory problems */ - ImageRec(ImageRec const &); - ImageRec& operator=(ImageRec const &); + ImageRec(ImageRec const&); + ImageRec& operator=(ImageRec const&); }; -bool load_image(const char * fname, ImageRec & tex); -bool save_screenshot(const char * fname); +bool load_image(const char* fname, ImageRec& tex); +bool save_screenshot(const char* fname); #endif -