VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MyParticleSystemModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "exampleEffectsPlugin.h"
12 
13 #include <vrvCore/DtUniqueID.h>
15 
16 #include <osgEarth/VirtualProgram>
17 #include <osg/ref_ptr>
18 
19 namespace osg
20 {
21  class StateSet;
22  class Uniform;
23 }
24 
25 namespace makVrv
26 {
27  class DtDe;
28 
30  {
31 
32  public:
33 
36  MyShaderManager(DtDe& de, osg::StateSet *ss);
37 
39  virtual ~MyShaderManager();
40 
41  //Function for changing the color that will be added to the fragments color
42  virtual void changeColorOverride(int color, float deltaChange);
43 
44  protected:
45 
47 
48  //model state set to attach the custom shaders to
50 
51  //Uniforms used by the custom shaders
53 
54  //virtual program for the stateset
56 
57  };
58 
65  {
66  public:
69 
71  virtual ~MyParticleSystemModel();
72 
75  virtual void setModelInstance(DtModelInstance* modelInstance );
76 
81  virtual void changeColorOverride( int color, float deltaChange );
82 
83  protected:
85 
86  };
87 }
The base class for all model instances.
Definition: DtModelInstance.h:41
A model of a particle system.
Definition: DtOsgParticleSystemModel.h:31
osg::ref_ptr< osgEarth::VirtualProgram > myVirtualProgram
Definition: MyParticleSystemModel.h:55
#define DT_DLL_EXAMPLEEFFECTSPLUGIN
Definition: exampleEffectsPlugin.h:18
osg::ref_ptr< osg::StateSet > myModelStateSet
Definition: MyParticleSystemModel.h:49
DtDe & myDe
Definition: MyParticleSystemModel.h:46
MyParticleSystemModel extends DtOsgParticleSystemModel to add a shader manager as shown in exampleCus...
Definition: MyParticleSystemModel.h:63
Contains makVrv::DtOsgParticleSystemModel class.
Definition: MyParticleSystemModel.h:29
Contains DLL export macros.
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
static MyShaderManager * theShaderManager
Definition: MyParticleSystemModel.h:84
osg::ref_ptr< osg::Uniform > myColorToAdd
Definition: MyParticleSystemModel.h:52
Contains makVrv::DtUniqueID type.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)