source:
nanovis/branches/1.1/PointShader.h
@
6369
Last change on this file since 6369 was 4889, checked in by ldelgass, 9 years ago | |
---|---|
|
|
File size: 603 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 | */ | |
[4889] | 6 | #ifndef NV_POINTSHADER_H |
7 | #define NV_POINTSHADER_H | |
[2096] | 8 | |
[4889] | 9 | #include "Shader.h" |
[2096] | 10 | #include "Texture3D.h" |
11 | ||
[4889] | 12 | namespace nv { |
13 | ||
14 | class PointShader : public Shader | |
[2096] | 15 | { |
[2833] | 16 | public: |
17 | PointShader(); | |
[2096] | 18 | |
[2914] | 19 | virtual ~PointShader(); |
[2096] | 20 | |
[2833] | 21 | void setScale(float scale) |
[2096] | 22 | { |
[2953] | 23 | _scale = scale; |
[2096] | 24 | } |
[2833] | 25 | |
[2953] | 26 | void setNormalTexture(Texture3D *normal) |
[2096] | 27 | { |
[2953] | 28 | _normal = normal; |
[2096] | 29 | } |
30 | ||
[2953] | 31 | virtual void bind(); |
[2833] | 32 | |
[2956] | 33 | virtual void unbind(); |
[2833] | 34 | |
35 | private: | |
[2953] | 36 | float _scale; |
[2833] | 37 | Texture3D *_normal; |
38 | }; | |
39 | ||
[4889] | 40 | } |
41 | ||
[2833] | 42 | #endif |
Note: See TracBrowser
for help on using the repository browser.