dungeon_crawler
annotate prototype/src/colgrade.h @ 75:b05ab29cd17d
color grading done
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 22 Oct 2012 03:55:00 +0300 |
parents | a27528035e20 |
children |
rev | line source |
---|---|
nuclear@72 | 1 #ifndef COLGRADE_H_ |
nuclear@72 | 2 #define COLGRADE_H_ |
nuclear@72 | 3 |
nuclear@72 | 4 class GradePalette { |
nuclear@72 | 5 private: |
nuclear@74 | 6 unsigned char *palette; |
nuclear@72 | 7 unsigned int tex; |
nuclear@72 | 8 int size; |
nuclear@72 | 9 |
nuclear@72 | 10 public: |
nuclear@72 | 11 GradePalette(); |
nuclear@72 | 12 ~GradePalette(); |
nuclear@72 | 13 |
nuclear@72 | 14 bool create(int sz = 16); |
nuclear@72 | 15 void destroy(); |
nuclear@72 | 16 |
nuclear@72 | 17 bool save_shot(const char *fname) const; |
nuclear@72 | 18 bool load_shot(const char *fname); |
nuclear@72 | 19 |
nuclear@72 | 20 unsigned int get_texture() const; |
nuclear@72 | 21 }; |
nuclear@72 | 22 |
nuclear@72 | 23 #endif // COLGRADE_H_ |