source: trunk/packages/vizservers/nanovis/NvColorTableShader.h @ 2861

Last change on this file since 2861 was 2859, checked in by ldelgass, 12 years ago

No need to inline bind/unbind

  • Property svn:eol-style set to native
File size: 533 bytes
RevLine 
[2798]1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
[2836]2#ifndef NV_COLORTABLE_SHADER_H
3#define NV_COLORTABLE_SHADER_H
[580]4
[2836]5#include <Cg/cg.h>
6
[580]7#include "Texture2D.h"
8#include "TransferFunction.h"
9#include "NvShader.h"
10
[2836]11class NvColorTableShader : public NvShader
12{
13public:
14    NvColorTableShader();
[580]15
16    ~NvColorTableShader();
17
[2836]18    void bind(Texture2D *plane, TransferFunction *tf);
19
20    void unbind();
21
[580]22private :
23    void init();
[2836]24
25    CGparameter _dataParam;
26    CGparameter _tfParam;
27    CGparameter _renderParam;
[580]28};
29
30#endif
Note: See TracBrowser for help on using the repository browser.