goat3dgfx

diff src/image.h @ 6:3d96734fd477

cubemap loading and cubemap example program
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 17 Nov 2013 08:20:13 +0200
parents 1873dfd13f2d
children 7d6b667821cf
line diff
     1.1 --- a/src/image.h	Sun Nov 17 03:22:40 2013 +0200
     1.2 +++ b/src/image.h	Sun Nov 17 08:20:13 2013 +0200
     1.3 @@ -28,9 +28,15 @@
     1.4  	Format get_format() const;
     1.5  
     1.6  	bool create(int x, int y, Format fmt = FMT_RGBA);
     1.7 -	bool set_pixels(int x, int y, void *pixels, Format fmt = FMT_RGBA);
     1.8 +	bool set_pixels(int xsz, int ysz, void *pixels, Format fmt = FMT_RGBA);
     1.9 +	bool set_pixels(int xsz, int ysz, void *pixels, int scan_width, Format fmt = FMT_RGBA);
    1.10 +	bool set_pixels(int xsz, int ysz, void *pixels, int x, int y, int scan_width = -1, Format fmt = FMT_RGBA);
    1.11  	void *get_pixels() const;
    1.12  
    1.13 +	void flip_horizontal();
    1.14 +	void flip_vertical();
    1.15 +	void rotate_180();
    1.16 +
    1.17  	bool load(const char *fname);
    1.18  	bool save(const char *fname) const;
    1.19  };