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
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | #ifndef NV_COLORTABLE_SHADER_H |
---|
3 | #define NV_COLORTABLE_SHADER_H |
---|
4 | |
---|
5 | #include <Cg/cg.h> |
---|
6 | |
---|
7 | #include "Texture2D.h" |
---|
8 | #include "TransferFunction.h" |
---|
9 | #include "NvShader.h" |
---|
10 | |
---|
11 | class NvColorTableShader : public NvShader |
---|
12 | { |
---|
13 | public: |
---|
14 | NvColorTableShader(); |
---|
15 | |
---|
16 | ~NvColorTableShader(); |
---|
17 | |
---|
18 | void bind(Texture2D *plane, TransferFunction *tf); |
---|
19 | |
---|
20 | void unbind(); |
---|
21 | |
---|
22 | private : |
---|
23 | void init(); |
---|
24 | |
---|
25 | CGparameter _dataParam; |
---|
26 | CGparameter _tfParam; |
---|
27 | CGparameter _renderParam; |
---|
28 | }; |
---|
29 | |
---|
30 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.