Changeset 3611 for trunk/packages/vizservers/nanovis/ParticleRenderer.h
- Timestamp:
- Apr 2, 2013 8:02:50 PM (11 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/ParticleRenderer.h
r3610 r3611 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 2 /* 3 * ----------------------------------------------------------------------4 * NvParticleRenderer.h: particle system class5 *6 * ======================================================================7 * AUTHOR: Wei Qiao <qiaow@purdue.edu>8 * Purdue Rendering and Perceptualization Lab (PURPL)9 *10 3 * Copyright (c) 2004-2013 HUBzero Foundation, LLC 11 4 * 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> 15 7 */ 16 #ifndef NV PARTICLERENDERER_H17 #define NV PARTICLERENDERER_H8 #ifndef NV_PARTICLE_RENDERER_H 9 #define NV_PARTICLE_RENDERER_H 18 10 19 11 #include <GL/glew.h> … … 24 16 #include "NvParticleAdvectionShader.h" 25 17 #include "RenderVertexArray.h" 18 19 namespace nv { 26 20 27 21 struct Particle { … … 39 33 }; 40 34 41 class NvParticleRenderer35 class ParticleRenderer 42 36 { 43 37 public: 44 NvParticleRenderer(int w, int h);38 ParticleRenderer(int w, int h); 45 39 46 ~ NvParticleRenderer();40 ~ParticleRenderer(); 47 41 48 42 void setVectorField(unsigned int texID, const vrmath::Vector3f& origin, … … 135 129 }; 136 130 131 class ParticleAdvectionShaderInstance 132 { 133 public : 134 ParticleAdvectionShaderInstance() 135 {} 136 137 ~ParticleAdvectionShaderInstance() 138 { 139 if (ParticleRenderer::_advectionShader) { 140 delete ParticleRenderer::_advectionShader; 141 } 142 } 143 }; 144 145 } 146 137 147 #endif
Note: See TracChangeset
for help on using the changeset viewer.