dungeon_crawler

diff prototype/src/colgrade.h @ 72:a27528035e20

- re-organized the renderer classes a bit wrt final render-target - implemented identity color-grading palette for now - broke particle systems.... - removed multipass renderer
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 19 Oct 2012 02:45:57 +0300
parents
children 5981917093ff
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/prototype/src/colgrade.h	Fri Oct 19 02:45:57 2012 +0300
     1.3 @@ -0,0 +1,22 @@
     1.4 +#ifndef COLGRADE_H_
     1.5 +#define COLGRADE_H_
     1.6 +
     1.7 +class GradePalette {
     1.8 +private:
     1.9 +	unsigned int tex;
    1.10 +	int size;
    1.11 +
    1.12 +public:
    1.13 +	GradePalette();
    1.14 +	~GradePalette();
    1.15 +
    1.16 +	bool create(int sz = 16);
    1.17 +	void destroy();
    1.18 +
    1.19 +	bool save_shot(const char *fname) const;
    1.20 +	bool load_shot(const char *fname);
    1.21 +
    1.22 +	unsigned int get_texture() const;
    1.23 +};
    1.24 +
    1.25 +#endif	// COLGRADE_H_