glviewvol

annotate 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
rev   line source
nuclear@0 1 #ifndef REND_FAST_H_
nuclear@0 2 #define REND_FAST_H_
nuclear@0 3
nuclear@0 4 #include "renderer.h"
nuclear@0 5
nuclear@0 6 class RendererFast : public Renderer {
nuclear@0 7 private:
nuclear@4 8 unsigned int vol_tex, xfer_tex;
nuclear@4 9 bool vol_tex_valid, xfer_tex_valid;
nuclear@0 10
nuclear@0 11 public:
nuclear@0 12 RendererFast();
nuclear@0 13
nuclear@0 14 bool init();
nuclear@0 15 void destroy();
nuclear@0 16
nuclear@4 17 void set_volume(Volume *vol);
nuclear@4 18 Curve &transfer_curve(int color);
nuclear@5 19 void set_simple_transfer(float low, float high);
nuclear@4 20
nuclear@0 21 void update(unsigned int msec);
nuclear@0 22 void render() const;
nuclear@0 23 };
nuclear@0 24
nuclear@0 25 #endif // REND_FAST_H_