Blender  V2.93
image_sky.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011-2020 Blender Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "render/image.h"
18 
20 
21 class SkyLoader : public ImageLoader {
22  private:
23  float sun_elevation;
24  float altitude;
25  float air_density;
26  float dust_density;
27  float ozone_density;
28 
29  public:
30  SkyLoader(float sun_elevation,
31  float altitude,
32  float air_density,
33  float dust_density,
34  float ozone_density);
35  ~SkyLoader();
36 
37  bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override;
38 
39  bool load_pixels(const ImageMetaData &metadata,
40  void *pixels,
41  const size_t /*pixels_size*/,
42  const bool /*associate_alpha*/) override;
43 
44  string name() const override;
45 
46  bool equals(const ImageLoader & /*other*/) const override;
47 };
48 
bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override
Definition: image_sky.cpp:43
bool equals(const ImageLoader &) const override
Definition: image_sky.cpp:89
bool load_pixels(const ImageMetaData &metadata, void *pixels, const size_t, const bool) override
Definition: image_sky.cpp:54
string name() const override
Definition: image_sky.cpp:84
SkyLoader(float sun_elevation, float altitude, float air_density, float dust_density, float ozone_density)
Definition: image_sky.cpp:28
#define CCL_NAMESPACE_END