Ignore:
Timestamp:
Apr 2, 2013 8:02:50 PM (11 years ago)
Author:
ldelgass
Message:

Use nv namespace for classes in nanovis rather than prefixing class names with
Nv (still need to convert shader classes).

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/ParticleRenderer.h

    r3610 r3611  
    11/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
    22/*
    3  * ----------------------------------------------------------------------
    4  * NvParticleRenderer.h: particle system class
    5  *
    6  * ======================================================================
    7  *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
    8  *           Purdue Rendering and Perceptualization Lab (PURPL)
    9  *
    103 *  Copyright (c) 2004-2013  HUBzero Foundation, LLC
    114 *
    12  *  See the file "license.terms" for information on usage and
    13  *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
    14  * ======================================================================
     5 *  Authors:
     6 *    Wei Qiao <qiaow@purdue.edu>
    157 */
    16 #ifndef NVPARTICLERENDERER_H
    17 #define NVPARTICLERENDERER_H
     8#ifndef NV_PARTICLE_RENDERER_H
     9#define NV_PARTICLE_RENDERER_H
    1810
    1911#include <GL/glew.h>
     
    2416#include "NvParticleAdvectionShader.h"
    2517#include "RenderVertexArray.h"
     18
     19namespace nv {
    2620
    2721struct Particle {
     
    3933};
    4034
    41 class NvParticleRenderer
     35class ParticleRenderer
    4236{
    4337public:
    44     NvParticleRenderer(int w, int h);
     38    ParticleRenderer(int w, int h);
    4539
    46     ~NvParticleRenderer();
     40    ~ParticleRenderer();
    4741
    4842    void setVectorField(unsigned int texID, const vrmath::Vector3f& origin,
     
    135129};
    136130
     131class ParticleAdvectionShaderInstance
     132{
     133public :
     134    ParticleAdvectionShaderInstance()
     135    {}
     136
     137    ~ParticleAdvectionShaderInstance()
     138    {
     139        if (ParticleRenderer::_advectionShader) {
     140            delete ParticleRenderer::_advectionShader;
     141        }
     142    }
     143};
     144
     145}
     146
    137147#endif
Note: See TracChangeset for help on using the changeset viewer.