VR-Forces Development_Version 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) 2015 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(DtOsgFileCache& fileCache, DtOsgShaderManager& shaderMgr, DtDe& de);
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 osg::Texture* findEffectTexture(const std::string& baseTextureName, const osgDB::Options* dbOptions, const FilenameSet &possibleFilenames, osg::Texture* baseTexture);
51 
52  static std::vector<std::string> parseSuffix(const std::string& baseTextureName, const std::string& effectTextureName);
53  };
54 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)