source:
trunk/packages/vizservers/nanovis/PointShader.h
@
3596
Last change on this file since 3596 was 3502, checked in by ldelgass, 12 years ago | |
---|---|
|
|
File size: 600 bytes |
Rev | Line | |
---|---|---|
[2798] | 1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
[3502] | 2 | /* |
3 | * Copyright (c) 2004-2013 HUBzero Foundation, LLC | |
4 | * | |
5 | */ | |
[2833] | 6 | #ifndef POINTSHADER_H |
7 | #define POINTSHADER_H | |
[2096] | 8 | |
9 | #include "NvShader.h" | |
10 | #include "Texture3D.h" | |
11 | ||
[2833] | 12 | class PointShader : public NvShader |
[2096] | 13 | { |
[2833] | 14 | public: |
15 | PointShader(); | |
[2096] | 16 | |
[2914] | 17 | virtual ~PointShader(); |
[2096] | 18 | |
[2833] | 19 | void setScale(float scale) |
[2096] | 20 | { |
[2953] | 21 | _scale = scale; |
[2096] | 22 | } |
[2833] | 23 | |
[2953] | 24 | void setNormalTexture(Texture3D *normal) |
[2096] | 25 | { |
[2953] | 26 | _normal = normal; |
[2096] | 27 | } |
28 | ||
[2953] | 29 | virtual void bind(); |
[2833] | 30 | |
[2956] | 31 | virtual void unbind(); |
[2833] | 32 | |
33 | private: | |
[2953] | 34 | float _scale; |
[2956] | 35 | float _scale; |
[2833] | 36 | Texture3D *_normal; |
37 | }; | |
38 | ||
39 | #endif |
Note: See TracBrowser
for help on using the repository browser.