VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgConfigurableEffectController.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 #include <osg/Vec4>
16 #include <osg/StateSet>
17 #include <osg/Texture>
18 
19 #include <string>
20 #include <vector>
21 
22 namespace makVrv
23 {
27  {
28  public:
29  virtual DtOsgEffectTextureController* create(const DtOsgFileCache& fileCache);
30  };
31 
35  {
36  public:
39 
42 
43  public: // DtOsgEffectTextureController interface
44 
45  std::string getEffectTypeCode() const { return ""; }
46 
47  bool generateShaders(int baseUnit, int effectUnit, osg::Texture* tex, osg::StateSet* stateSet, const std::string& baseTextureName);
48 
50  virtual void findEffectTexture(const std::string& baseTextureName, const osgDB::Options* dbOptions, const FilenameMap &possibleFilenames, const osg::Texture* baseTexture, osg::ref_ptr<osg::Texture>& effectTexture);
51 
52  static std::vector<std::string> parseSuffix(const std::string& baseTextureName, const std::string& effectTextureName);
53  };
54 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)