VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtNightTextureController.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
16 
17 #include <string>
18 
19 namespace osg
20 {
21  class Texture;
22  class StateSet;
23 }
24 
25 
26 //There are two different night texture options.
27 // NTE which runs before the lighting and just replaces the diffuse texture
28 // NGT which runs after everything else and replaces the final color at night
29 // NGT is the original that ST asked for NTE was added afterwards to fix a few issues
30 namespace makVrv
31 {
35  {
36  public:
37  virtual DtOsgEffectTextureController* create(DtDe& de);
38  };
39 
43  {
44  public:
45  virtual DtOsgEffectTextureController* create(DtDe& de);
46  };
47 
51  {
52  public:
54  DtNightTextureController(DtDe& de, bool preLit);
55 
57  virtual ~DtNightTextureController();
58 
59  public: // DtOsgEffectTextureController interface
60  bool installShaders(int baseUnit, int effectUnit, const osg::Texture* tex, osg::StateSet* stateSet, const std::string& baseTextureName) const;
61  };
62 
63 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
Contains makVrv::DtOsgEffectTextureController declaration.
Creator for pre lighting night texture controller.
Definition: DtNightTextureController.h:34
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Installs and control reflectivity mapping effects.
Definition: DtNightTextureController.h:50
Base class for controllers that install and control effect textures.
Definition: DtOsgEffectTextureController.h:44
Definition: DtEffectControllerCreator.h:14
Contains makVrv::DtEffectControllerFactory class.
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
Creator for post lighting night texture controller.
Definition: DtNightTextureController.h:42

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)