VR-Forces 4.6 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
37  {
38  public:
41 
44 
46  virtual void registerType(int type);
47 
49  virtual int numEffectTextures(void) const;
50 
52  virtual int indexForType(int type) const;
53 
55  virtual int typeForIndex(int index) const;
56  protected:
59  };
60 }

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)