VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgStateComponent.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <osg/Referenced>
14 #include <osg/ref_ptr>
15 #include <string>
16 
17 namespace osg
18 {
19  class StateSet;
20 }
21 
22 namespace makVrv
23 {
24  //TODO: put this is a separate file [h/cxx] file?
25 
26  class DtDe;
27 
28  class DtOsgShaderFilesCache;
29 
34  class DT_DLL_VRVOSG DtOsgStateComponent : public osg::Referenced
35  {
36  public:
39 
41  virtual bool install(osg::StateSet* stateset) =0;
42 
44  virtual bool uninstall(osg::StateSet* stateset) =0;
45 
46  protected:
47 
49  virtual ~DtOsgStateComponent();
50 
52  std::string loadShaderSource(const std::string& strFileName) const;
53 
54  protected:
55 
57 
59  };
60 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Definition: DtOsgShaderFilesCache.h:22
DtOsgShaderFilesCache & myShaderFilesCache
Definition: DtOsgStateComponent.h:58
Base class for components that affect the state on a subset of the scene graph, injecting state...
Definition: DtOsgStateComponent.h:34
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtDe & myDe
Definition: DtOsgStateComponent.h:56

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)