NAP
imagefromfile.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 // Local Includes
8 #include "image.h"
9 
10 // External Includes
11 #include <rtti/factory.h>
12 
13 namespace nap
14 {
20  class NAPAPI ImageFromFile : public Image
21  {
22  RTTI_ENABLE(Image)
23  public:
28  ImageFromFile(Core& core, const std::string& imgPath);
29 
33  ImageFromFile(Core& core);
34 
40  virtual bool init(utility::ErrorState& errorState) override;
41 
42  public:
43  std::string mImagePath;
44  bool mGenerateLods = true;
45  };
46 }
nap::utility::ErrorState
Definition: errorstate.h:19
nap::ImageFromFile
Definition: imagefromfile.h:20
nap::Image
Definition: image.h:18
nap::Core
Definition: core.h:82
nap::ImageFromFile::mImagePath
std::string mImagePath
Property: 'ImagePath' Path to the image on disk to load.
Definition: imagefromfile.h:43
nap
Definition: templateapp.h:17