X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FUtils%2FImageIO.hpp;h=4683b0a7eda24bd8f29bdf09a0257d0d89944b2d;hb=refs%2Fheads%2Fimprovements;hp=6b43badd5dfea3ca38c99fdc124a62cb8c0b91df;hpb=ed3662c0852c4312a612b4fc35bd03aba8d13db7;p=lugaru.git diff --git a/Source/Utils/ImageIO.hpp b/Source/Utils/ImageIO.hpp index 6b43bad..4683b0a 100644 --- a/Source/Utils/ImageIO.hpp +++ b/Source/Utils/ImageIO.hpp @@ -1,6 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -25,9 +25,9 @@ along with Lugaru. If not, see . #pragma once #endif -#include -#include -#include +#include +#include +#include #ifdef WIN32 #define WIN32_LEAN_AND_MEAN @@ -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 -