VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtIndirectEffectTexturesTemplate.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 namespace makVrv
17 {
29  // Example: a template with types registered in order with these types, will have the corresponding internal index:
30  // ETT_NORMAL_MAP -> 0
31  // ETT_AO_MAP -> 1
32  // ETT_SPECULAR_MAP -> 2
33  // ETT_LIGHT_MAP -> 3
34  // even though the corresponding enums in DtOsgEffectTextureController::EffectTextureType are not necessarily that index/in order
35  // This enforced ordering ensures that the textures referred to in the indirect rendering engine code/shaders will always be found at those indices
36  // non virtual container class which is basically just a bi directional map of ints to ints.
39  {
40  public:
43 
46 
47  public:
49  void registerType(int type);
50 
52  bool hasType(int type) const;
53 
55  int numEffectTextures(void) const;
56 
58  int indexForType(int type) const;
59 
61  int typeForIndex(int index) const;
62 
64  bool operator==(const DtIndirectEffectTexturesTemplate& rhs) const;
65 
67  bool operator!=(const DtIndirectEffectTexturesTemplate& rhs) const;
68  protected:
71  std::string myHashStr;
72  };
73 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
MapIntToInt myIndexToType
Definition: DtIndirectEffectTexturesTemplate.h:70
std::map< int, int > MapIntToInt
Definition: DtCommonTypes.h:25
std::string myHashStr
Definition: DtIndirectEffectTexturesTemplate.h:71
bool operator==(const DtTextureAtlasIndexParser::StringOrFloatAttrib &lhs, const DtTextureAtlasIndexParser::StringOrFloatAttrib &rhs)
needed for search comparison code
Definition: DtTextureAtlasIndexParser.h:153
Contains DLL export macros.
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
Class that allows you to abstractly register effect texture types the effect texture types are client...
Definition: DtIndirectEffectTexturesTemplate.h:38
MapIntToInt myTypeToIndex
Definition: DtIndirectEffectTexturesTemplate.h:69

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)