aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextureRender.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextureRender.hh')
-rw-r--r--src/FbTk/TextureRender.hh27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/FbTk/TextureRender.hh b/src/FbTk/TextureRender.hh
index 158625e..7896c06 100644
--- a/src/FbTk/TextureRender.hh
+++ b/src/FbTk/TextureRender.hh
@@ -31,7 +31,6 @@
31 31
32namespace FbTk { 32namespace FbTk {
33 33
34class Color;
35class ImageControl; 34class ImageControl;
36class Texture; 35class Texture;
37 36
@@ -42,8 +41,7 @@ class Texture;
42class TextureRender { 41class TextureRender {
43public: 42public:
44 TextureRender(ImageControl &ic, unsigned int width, unsigned int height, 43 TextureRender(ImageControl &ic, unsigned int width, unsigned int height,
45 Orientation orient = ROT0, 44 Orientation orient = ROT0);
46 XColor *_colors=0, size_t num_colors=0);
47 ~TextureRender(); 45 ~TextureRender();
48 /// render to pixmap 46 /// render to pixmap
49 Pixmap render(const FbTk::Texture &src_texture); 47 Pixmap render(const FbTk::Texture &src_texture);
@@ -66,36 +64,15 @@ private:
66 @returns allocated and rendered XImage, user is responsible to deallocate 64 @returns allocated and rendered XImage, user is responsible to deallocate
67 */ 65 */
68 XImage *renderXImage(); 66 XImage *renderXImage();
69 /**
70 @name render functions
71 */
72 //@{
73 void invert();
74 void bevel1();
75 void bevel2();
76 void dgradient();
77 void egradient();
78 void hgradient();
79 void pgradient();
80 void rgradient();
81 void vgradient();
82 void cdgradient();
83 void pcgradient();
84 //@}
85 67
86 ImageControl &control; 68 ImageControl &control;
87 bool interlaced;
88
89 XColor *colors; // color table
90 69
91 const FbTk::Color *from, *to;
92 int red_offset, green_offset, blue_offset, red_bits, green_bits, blue_bits, 70 int red_offset, green_offset, blue_offset, red_bits, green_bits, blue_bits,
93 ncolors, cpc, cpccpc; 71 cpc, cpccpc;
94 unsigned char *red, *green, *blue; 72 unsigned char *red, *green, *blue;
95 const unsigned char *red_table, *green_table, *blue_table; 73 const unsigned char *red_table, *green_table, *blue_table;
96 Orientation orientation; 74 Orientation orientation;
97 unsigned int width, height; 75 unsigned int width, height;
98 unsigned int *xtable, *ytable;
99}; 76};
100 77
101} // end namespace FbTk 78} // end namespace FbTk