VR-Forces 4.8 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 {
23  {
24  public:
26  virtual ~DtOsgShaderFilesCache();
27 
29  virtual const std::string& loadShaderSource(const std::string& strFileName) const;
30  public:
33  static DtOsgShaderFilesCache& instance(DtDe& de);
34  protected:
37 
39  virtual void PreReloadShaders(void);
40 
42  virtual void PostReloadShaders(void);
43 
44  protected:
47 
49 
50  static const std::string s_cEmptyString;
51  mutable boost::mutex myMutex;
52  };
53 }
Virtual base class.
Definition: DtVirtualBaseClass.h:22
std::map< std::string, std::string > MapStringToString
Definition: DtCommonTypes.h:24
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: DtOsgShaderFilesCache.h:22
boost::mutex myMutex
Definition: DtOsgShaderFilesCache.h:51
Contains makVrv::DtVirtualBaseClass class.
DtDe & myDe
Definition: DtOsgShaderFilesCache.h:48
OpenThreads::Mutex Mutex
Definition: DtOsgThreadingUtils.h:12
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
MapStringToString myMutableShaderFilesCache
Definition: DtOsgShaderFilesCache.h:45
OpenThreads::Mutex myShaderFilesCacheMutex
Definition: DtOsgShaderFilesCache.h:46
static const std::string s_cEmptyString
Definition: DtOsgShaderFilesCache.h:50

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)