source: nanovis/branches/1.1/PointShader.h @ 6369

Last change on this file since 6369 was 4889, checked in by ldelgass, 9 years ago

Merge r3611:3618 from trunk

  • Property svn:eol-style set to native
File size: 603 bytes
RevLine 
[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]12namespace nv {
13
14class PointShader : public Shader
[2096]15{
[2833]16public:
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
35private:
[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.