dungeon_crawler

view prototype/src/colgrade.h @ 79:110b2af4b9d8

fixed the shader non-conformity by explicitly converting 2.2 to vec3 before passing it to pow for the texel inverse-gamma thing
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 27 Oct 2012 01:54:39 +0300
parents a27528035e20
children
line source
1 #ifndef COLGRADE_H_
2 #define COLGRADE_H_
4 class GradePalette {
5 private:
6 unsigned char *palette;
7 unsigned int tex;
8 int size;
10 public:
11 GradePalette();
12 ~GradePalette();
14 bool create(int sz = 16);
15 void destroy();
17 bool save_shot(const char *fname) const;
18 bool load_shot(const char *fname);
20 unsigned int get_texture() const;
21 };
23 #endif // COLGRADE_H_