glviewvol
view src/rend_fast.h @ 5:5417c25cb238
moving to a simpler transfer function
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 29 Dec 2014 15:59:55 +0200 |
parents | 04330eb80b36 |
children | f22be47a3572 |
line source
1 #ifndef REND_FAST_H_
2 #define REND_FAST_H_
4 #include "renderer.h"
6 class RendererFast : public Renderer {
7 private:
8 unsigned int vol_tex, xfer_tex;
9 bool vol_tex_valid, xfer_tex_valid;
11 public:
12 RendererFast();
14 bool init();
15 void destroy();
17 void set_volume(Volume *vol);
18 Curve &transfer_curve(int color);
19 void set_simple_transfer(float low, float high);
21 void update(unsigned int msec);
22 void render() const;
23 };
25 #endif // REND_FAST_H_