![]()  | 
  
    RigsofRods
    2023.09
    
   Soft-body Physics Simulation 
   | 
 
Class to manager GPU normal maps. More...
#include <GPUNormalMapManager.h>
Public Member Functions | |
| GPUNormalMapManager (Hydrax *h) | |
| Constructor.  More... | |
| ~GPUNormalMapManager () | |
| Destructor.  More... | |
| void | create () | 
| Create.  More... | |
| void | remove () | 
| Remove.  More... | |
| void | setActive (const bool &Active) | 
| Set active.  More... | |
| const bool & | isCreated () const | 
| Has been created() already called?  More... | |
| Hydrax * | getHydrax () | 
| Get the Hydrax parent pointer.  More... | |
| Ogre::MaterialPtr & | getNormalMapMaterial () | 
| Get the normal map material.  More... | |
| Ogre::TexturePtr & | getTexture (const int &Index) | 
| Get a texture.  More... | |
| void | addTexture (Ogre::TexturePtr &Texture) | 
| Create a texture.  More... | |
| void | removeTexture (const int &Index) | 
| Remove a texture.  More... | |
Private Attributes | |
| Hydrax * | mHydrax | 
| Hydrax main pointer.  More... | |
| RttManager * | mRttManager | 
| Rtt manager pointer.  More... | |
| bool | mCreated | 
| Has been create() already called?  More... | |
| Ogre::MaterialPtr | mNormalMapMaterial | 
| This material must be created in the noise module, in order to be according with the Hydrax modulable interface in all cases the Fragment program must have a 'uStrength' parameter will represents the intensity of the normals.  More... | |
| std::vector< Ogre::TexturePtr > | mTextures | 
| The normal map material needs some textures wich will be filled by code.  More... | |
Class to manager GPU normal maps.
Definition at line 45 of file GPUNormalMapManager.h.
| Hydrax::GPUNormalMapManager::GPUNormalMapManager | ( | Hydrax * | h | ) | 
| Hydrax::GPUNormalMapManager::~GPUNormalMapManager | ( | ) | 
Destructor.
Definition at line 42 of file GPUNormalMapManager.cpp.
      
  | 
  inline | 
Create a texture.
| Texture | Ogre::TexturePtr | 
Definition at line 119 of file GPUNormalMapManager.h.
| void Hydrax::GPUNormalMapManager::create | ( | ) | 
Create.
Definition at line 47 of file GPUNormalMapManager.cpp.
      
  | 
  inline | 
Get the Hydrax parent pointer.
Definition at line 94 of file GPUNormalMapManager.h.
      
  | 
  inline | 
Get the normal map material.
Definition at line 102 of file GPUNormalMapManager.h.
      
  | 
  inline | 
Get a texture.
| Index | Texture index | 
Definition at line 111 of file GPUNormalMapManager.h.
      
  | 
  inline | 
Has been created() already called?
Definition at line 84 of file GPUNormalMapManager.h.
| void Hydrax::GPUNormalMapManager::remove | ( | ) | 
Remove.
Definition at line 61 of file GPUNormalMapManager.cpp.
      
  | 
  inline | 
Remove a texture.
| Index | Texture index | 
Definition at line 127 of file GPUNormalMapManager.h.
      
  | 
  inline | 
Set active.
| Active | true for yes, false for not | 
Definition at line 69 of file GPUNormalMapManager.h.
      
  | 
  private | 
Has been create() already called?
Definition at line 144 of file GPUNormalMapManager.h.
      
  | 
  private | 
Hydrax main pointer.
Definition at line 139 of file GPUNormalMapManager.h.
      
  | 
  private | 
This material must be created in the noise module, in order to be according with the Hydrax modulable interface in all cases the Fragment program must have a 'uStrength' parameter will represents the intensity of the normals.
Definition at line 151 of file GPUNormalMapManager.h.
      
  | 
  private | 
Rtt manager pointer.
Definition at line 141 of file GPUNormalMapManager.h.
      
  | 
  private | 
The normal map material needs some textures wich will be filled by code.
The following std::vector will store all textures, and after they need to be modified in the noise module.
Definition at line 157 of file GPUNormalMapManager.h.
 1.8.17