vrchess
diff src/image.h @ 2:879194e4b1f0
fixed line-endings
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 25 Apr 2014 05:44:09 +0300 |
parents | b326d53321f7 |
children |
line diff
1.1 --- a/src/image.h Fri Apr 25 05:43:26 2014 +0300 1.2 +++ b/src/image.h Fri Apr 25 05:44:09 2014 +0300 1.3 @@ -1,29 +1,29 @@ 1.4 -#ifndef IMAGE_H_ 1.5 -#define IMAGE_H_ 1.6 - 1.7 -class Image { 1.8 -private: 1.9 - int width, height; 1.10 - unsigned char *pixels; 1.11 - bool own_pixels; 1.12 - 1.13 -public: 1.14 - Image(); 1.15 - ~Image(); 1.16 - 1.17 - Image(const Image &img); 1.18 - Image &operator =(const Image &img); 1.19 - 1.20 - void create(int xsz, int ysz, unsigned char *pix = 0); 1.21 - void destroy(); 1.22 - 1.23 - int get_width() const; 1.24 - int get_height() const; 1.25 - 1.26 - void set_pixels(int xsz, int ysz, unsigned char *pix); 1.27 - unsigned char *get_pixels() const; 1.28 - 1.29 - bool load(const char *fname); 1.30 -}; 1.31 - 1.32 -#endif // IMAGE_H_ 1.33 \ No newline at end of file 1.34 +#ifndef IMAGE_H_ 1.35 +#define IMAGE_H_ 1.36 + 1.37 +class Image { 1.38 +private: 1.39 + int width, height; 1.40 + unsigned char *pixels; 1.41 + bool own_pixels; 1.42 + 1.43 +public: 1.44 + Image(); 1.45 + ~Image(); 1.46 + 1.47 + Image(const Image &img); 1.48 + Image &operator =(const Image &img); 1.49 + 1.50 + void create(int xsz, int ysz, unsigned char *pix = 0); 1.51 + void destroy(); 1.52 + 1.53 + int get_width() const; 1.54 + int get_height() const; 1.55 + 1.56 + void set_pixels(int xsz, int ysz, unsigned char *pix); 1.57 + unsigned char *get_pixels() const; 1.58 + 1.59 + bool load(const char *fname); 1.60 +}; 1.61 + 1.62 +#endif // IMAGE_H_