Last change
on this file since 3596 was
3502,
checked in by ldelgass, 11 years ago
|
Add basic VTK structured points reader to nanovis, update copyright dates.
|
-
Property svn:eol-style set to
native
|
File size:
600 bytes
|
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 POINTSHADER_H |
---|
7 | #define POINTSHADER_H |
---|
8 | |
---|
9 | #include "NvShader.h" |
---|
10 | #include "Texture3D.h" |
---|
11 | |
---|
12 | class PointShader : public NvShader |
---|
13 | { |
---|
14 | public: |
---|
15 | PointShader(); |
---|
16 | |
---|
17 | virtual ~PointShader(); |
---|
18 | |
---|
19 | void setScale(float scale) |
---|
20 | { |
---|
21 | _scale = scale; |
---|
22 | } |
---|
23 | |
---|
24 | void setNormalTexture(Texture3D *normal) |
---|
25 | { |
---|
26 | _normal = normal; |
---|
27 | } |
---|
28 | |
---|
29 | virtual void bind(); |
---|
30 | |
---|
31 | virtual void unbind(); |
---|
32 | |
---|
33 | private: |
---|
34 | float _scale; |
---|
35 | float _scale; |
---|
36 | Texture3D *_normal; |
---|
37 | }; |
---|
38 | |
---|
39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.