source: nanovis/trunk/StdVertexShader.h @ 4897

Last change on this file since 4897 was 3630, checked in by ldelgass, 7 years ago

Nanovis refactoring to fix problems with scaling and multiple results.
Do rendering in world space to properly place and scale multiple data sets.
Also fix flows to reduce resets of animations. More work toward removing
Cg dependency. Fix panning to convert viewport coords to world coords.

  • Property svn:eol-style set to native
File size: 705 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 NV_STD_VERTEX_SHADER_H
7#define NV_STD_VERTEX_SHADER_H
8
9#include <vrmath/Vector4f.h>
10
11#include "Shader.h"
12
13namespace nv {
14
15class StdVertexShader : public Shader
16{
17public:
18    StdVertexShader();
19
20    virtual ~StdVertexShader();
21
22    virtual void bind(const vrmath::Vector4f& objPlaneS,
23                      const vrmath::Vector4f& objPlaneT,
24                      const vrmath::Vector4f& objPlaneR,
25                      float *mvp = NULL, float *mvInv = NULL);
26
27    virtual void unbind()
28    {
29        Shader::unbind();
30    }
31
32private:
33    void init();
34};
35
36}
37
38#endif
39
Note: See TracBrowser for help on using the repository browser.