NAP
equirectangularcubemap.h
1 #pragma once
2 
3 // Local includes
4 #include "renderadvancedservice.h"
5 
6 // External includes
7 #include <nap/resource.h>
8 #include <rendertexturecube.h>
9 #include <texture.h>
10 
11 namespace nap
12 {
35  {
36  RTTI_ENABLE(RenderTextureCube)
37  friend class RenderAdvancedService;
38  public:
39  // Destructor
40  virtual ~EquiRectangularCubeMap() override;
41 
46 
52  virtual bool init(nap::Texture2D& equiRectangularTexture, utility::ErrorState& errorState);
53 
57  Texture2D& getSourceTexture() { assert(mEquiRectangularTexture != nullptr); return *mEquiRectangularTexture; }
58 
62  const Texture2D& getSourceTexture() const { assert(mEquiRectangularTexture != nullptr); return *mEquiRectangularTexture; }
63 
67  virtual void onDestroy();
68 
69  bool mSampleShading = false;
71 
72  protected:
73  RenderAdvancedService* mRenderAdvancedService = nullptr;
74 
75  private:
76  Texture2D* mEquiRectangularTexture = nullptr;
77  };
78 }
79 
nap::EquiRectangularCubeMap::mGenerateLods
bool mGenerateLods
Property: 'GenerateLODs' whether to create mip-maps when the cubemap is generated.
Definition: equirectangularcubemap.h:70
nap::RenderAdvancedService
Definition: renderadvancedservice.h:99
nap::RenderTextureCube
Definition: rendertexturecube.h:36
nap::EquiRectangularCubeMap
Definition: equirectangularcubemap.h:34
nap::Texture2D
Definition: texture.h:117
nap::Core
Definition: core.h:82
nap::EquiRectangularCubeMap::getSourceTexture
const Texture2D & getSourceTexture() const
Definition: equirectangularcubemap.h:62
nap
Definition: templateapp.h:17