Blender  V2.93
blender_image.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 #ifndef __BLENDER_IMAGE_H__
18 #define __BLENDER_IMAGE_H__
19 
20 #include "RNA_blender_cpp.h"
21 
22 #include "render/image.h"
23 
25 
27  public:
29 
30  bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override;
31  bool load_pixels(const ImageMetaData &metadata,
32  void *pixels,
33  const size_t pixels_size,
34  const bool associate_alpha) override;
35  string name() const override;
36  bool equals(const ImageLoader &other) const override;
37 
39  int frame;
40  bool free_cache;
41 };
42 
44  public:
45  BlenderPointDensityLoader(BL::Depsgraph depsgraph, BL::ShaderNodeTexPointDensity b_node);
46 
47  bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override;
48  bool load_pixels(const ImageMetaData &metadata,
49  void *pixels,
50  const size_t pixels_size,
51  const bool associate_alpha) override;
52  string name() const override;
53  bool equals(const ImageLoader &other) const override;
54 
56  BL::ShaderNodeTexPointDensity b_node;
57 };
58 
60 
61 #endif /* __BLENDER_IMAGE_H__ */
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:51
struct Image Image
bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override
bool load_pixels(const ImageMetaData &metadata, void *pixels, const size_t pixels_size, const bool associate_alpha) override
bool equals(const ImageLoader &other) const override
BlenderImageLoader(BL::Image b_image, int frame)
string name() const override
bool equals(const ImageLoader &other) const override
BL::ShaderNodeTexPointDensity b_node
Definition: blender_image.h:56
BlenderPointDensityLoader(BL::Depsgraph depsgraph, BL::ShaderNodeTexPointDensity b_node)
string name() const override
bool load_metadata(const ImageDeviceFeatures &features, ImageMetaData &metadata) override
bool load_pixels(const ImageMetaData &metadata, void *pixels, const size_t pixels_size, const bool associate_alpha) override
const Depsgraph * depsgraph
#define CCL_NAMESPACE_END