VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleShaderManager.h
Go to the documentation of this file.
1 // /******************************************************************************
2 // ** Copyright (c) 2019 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************/
5 
8 
9 #ifndef DtExampleShaderManager_H_
10 #define DtExampleShaderManager_H_
11 
12 #include <vrvCore/DtDe.h>
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <osg/ref_ptr>
16 
17 namespace osg
18 {
19  class StateSet;
20  class Uniform;
21 }
22 
23 namespace osgEarth
24 {
25  class VirtualProgram;
26 }
27 
28 namespace makVrv
29 {
30 
34  {
35 
36  public:
37 
40  DtExampleShaderManager(DtDe& de, osg::StateSet *ss);
41 
43  virtual ~DtExampleShaderManager();
44 
45  //Function for changing the color that will be added to the fragments color
46  virtual void changeColorOverride(int color, float deltaChange);
47 
48  //Function for modifying the scale that will be applied to the model
49  virtual void changeScale(int axis, float deltaChange);
50 
51 
52  protected:
53 
55 
56  //model state set to attach the custom shaders to
58 
59  //Uniforms used by the custom shaders
62 
63  //virtual program for the stateset
65 
66  };
67 
68 }
69 
70 #endif
osg::ref_ptr< osgEarth::VirtualProgram > myVirtualProgram
Definition: DtExampleShaderManager.h:64
osg::ref_ptr< osg::Uniform > myScale
Definition: DtExampleShaderManager.h:61
osg::ref_ptr< osg::Uniform > myColorToAdd
Definition: DtExampleShaderManager.h:60
virtual void changeColorOverride(int color, float deltaChange)
Contains makVrv::DtDe class.
virtual ~DtExampleShaderManager()
DTOR.
This is the implementation of the example model manager. It handles the creation and resizing of Exam...
Definition: DtExampleShaderManager.h:33
DtDe & myDe
Definition: DtExampleShaderManager.h:54
virtual void changeScale(int axis, float deltaChange)
DtExampleShaderManager(DtDe &de, osg::StateSet *ss)
The Constructor takes in the de for the application also takes in a stateset to apply the new shaders...
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:70
osg::ref_ptr< osg::StateSet > myModelStateSet
Definition: DtExampleShaderManager.h:57

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)