VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgConfigurableEffectController.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2017 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
16 
17 #include <string>
18 #include <vector>
19 
20 namespace osg
21 {
22  class Texture;
23  class StateSet;
24 }
25 
26 namespace makVrv
27 {
31  {
32  public:
35 
38 
39  public: // DtOsgEffectTextureController interface
40 
41  virtual bool installShaders(int baseUnit, int effectUnit, const osg::Texture* tex, osg::StateSet* stateSet, const std::string& baseTextureName) const;
42 
44  virtual void findEffectTexture(const std::string& baseTextureName, const osgDB::Options* dbOptions, const DtPossibleFileNamesCache& possibleFilenames, const osg::Texture* baseTexture, osg::ref_ptr<osg::Texture>& effectTexture) const;
45 
47  virtual bool isEffectTexture(const osg::Texture* tex, const std::string& texName) const;
48 
49  static bool isConfigurableMapTexture(const std::string& textureName);
50 
51  static std::vector<std::string> parseSuffix(const std::string& baseTextureName, const std::string& effectTextureName);
52 
53  protected:
54  static const std::set<std::string> theChannelIds;
55  static std::set<std::string> initChannelIds();
56  };
57 
61 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)