aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextureRender.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2012-11-08 10:02:28 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-11-08 10:02:28 (GMT)
commitb4534e0f28664f8b7a6d7a1155b0178232ed4e51 (patch)
treebc91a9529c0f4fa1b284780d6bd72d6d682d2b57 /src/FbTk/TextureRender.hh
parent2e663cb78474e7a624516bd725095d2143a44580 (diff)
downloadfluxbox-b4534e0f28664f8b7a6d7a1155b0178232ed4e51.zip
fluxbox-b4534e0f28664f8b7a6d7a1155b0178232ed4e51.tar.bz2
Rewrite of FbTk::TextureRender
* much more readable and easier to read code * smaller code * reduced binary size due to removed big lookup-table for square root * simple 'optimizations (lookup tables, packing of data), nothing too fancy
Diffstat (limited to 'src/FbTk/TextureRender.hh')
-rw-r--r--src/FbTk/TextureRender.hh12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/FbTk/TextureRender.hh b/src/FbTk/TextureRender.hh
index b19a606..d9f403c 100644
--- a/src/FbTk/TextureRender.hh
+++ b/src/FbTk/TextureRender.hh
@@ -36,8 +36,10 @@ class Texture;
36 36
37/// Renders texture to pixmap 37/// Renders texture to pixmap
38/** 38/**
39 This is used with BImageControl to render textures 39 This is used with ImageControl to render textures
40*/ 40*/
41
42struct RGBA;
41class TextureRender { 43class TextureRender {
42public: 44public:
43 TextureRender(ImageControl &ic, unsigned int width, unsigned int height, 45 TextureRender(ImageControl &ic, unsigned int width, unsigned int height,
@@ -67,10 +69,10 @@ private:
67 69
68 ImageControl &control; 70 ImageControl &control;
69 71
70 int red_offset, green_offset, blue_offset, red_bits, green_bits, blue_bits, 72 int cpc, cpccpc;
71 cpc; 73
72 unsigned char *red, *green, *blue; 74 RGBA* rgba;
73 const unsigned char *red_table, *green_table, *blue_table; 75 //unsigned char *red, *green, *blue;
74 Orientation orientation; 76 Orientation orientation;
75 unsigned int width, height; 77 unsigned int width, height;
76}; 78};