VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtExampleEffectTextureController.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
11 
12 #include <vrvCore/DtDe.h>
13 
16 
17 #include <osg/StateSet>
18 #include <osg/Texture>
19 
20 using namespace makArchives;
21 
22 namespace makVrv
23 {
25  {
26  public:
28 
30 
31  virtual bool installShaders(int baseUnit, int effectUnit, osg::Texture* tex, osg::StateSet* stateSet, const std::string& baseTextureName) const;
32 
33  static void toggleEffectEnabled();
34 
35  private:
36  static osg::ref_ptr< osg::Uniform > effectEnabledUniform;
37 
38  static const std::string myVertSource;
39  static const std::string myFragSource;
40 
41  };
42 
44  {
45  public:
46  virtual DtOsgEffectTextureController* create(const DtOsgFileCache& fileCache);
47  };
48 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)