VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgShaderFilesCache.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
11 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/Referenced>
17 
18 #include <boost/thread.hpp>
19 
20 namespace makVrv
21 {
22  template<class T>
23  class DtVirtualBaseClassCreator;
24 
25 
27  {
28  public:
29 
32  static DtOsgShaderFilesCache& instance(DtDe& de);
33 
35  virtual ~DtOsgShaderFilesCache();
36 
38  const std::string& loadShaderSource(const std::string& strFileName) const;
39  private:
40 
43 
47 
49 
50  void PreReloadShaders(void);
51  void PostReloadShaders(void);
52 
53  static const std::string s_cEmptyString;
54  mutable boost::mutex myMutex;
55  };
56 }

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)