Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * Copyright (c) 2004-2013 HUBzero Foundation, LLC |
---|
4 | * |
---|
5 | */ |
---|
6 | #ifndef NV_REGULAR_VOLUME_SHADER_H |
---|
7 | #define NV_REGULAR_VOLUME_SHADER_H |
---|
8 | |
---|
9 | #include "Volume.h" |
---|
10 | #include "VolumeShader.h" |
---|
11 | |
---|
12 | namespace nv { |
---|
13 | |
---|
14 | /// Shader for regular volume (uniform grid) |
---|
15 | class RegularVolumeShader : public VolumeShader |
---|
16 | { |
---|
17 | public: |
---|
18 | RegularVolumeShader(); |
---|
19 | |
---|
20 | virtual ~RegularVolumeShader(); |
---|
21 | |
---|
22 | virtual void bind(unsigned int tfID, Volume *volume, |
---|
23 | int sliceMode, float sampleRatio); |
---|
24 | |
---|
25 | virtual void unbind(); |
---|
26 | |
---|
27 | private: |
---|
28 | void init(); |
---|
29 | }; |
---|
30 | |
---|
31 | } |
---|
32 | |
---|
33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.