Blender  V2.93
blender_viewport.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 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_VIEWPORT_H__
18 #define __BLENDER_VIEWPORT_H__
19 
20 #include "MEM_guardedalloc.h"
21 #include "RNA_access.h"
22 #include "RNA_blender_cpp.h"
23 #include "RNA_types.h"
24 
25 #include "render/film.h"
26 #include "util/util_param.h"
27 
29 
31  private:
32  bool use_scene_world;
33  bool use_scene_lights;
34  float studiolight_rotate_z;
35  float studiolight_intensity;
36  float studiolight_background_alpha;
37  ustring studiolight_path;
38 
40  BlenderViewportParameters(BL::SpaceView3D &b_v3d);
41 
42  const bool modified(const BlenderViewportParameters &other) const;
43  const bool custom_viewport_parameters() const;
44  friend class BlenderSync;
45 
46  public:
47  /* Retrieve the render pass that needs to be displayed on the given `SpaceView3D`
48  * When the `b_v3d` parameter is not given `PASS_NONE` will be returned. */
49  static PassType get_viewport_display_render_pass(BL::SpaceView3D &b_v3d);
50 };
51 
52 PassType update_viewport_display_passes(BL::SpaceView3D &b_v3d, vector<Pass> &passes);
53 
55 
56 #endif
Read Guarded memory(de)allocation.
PassType update_viewport_display_passes(BL::SpaceView3D &b_v3d, vector< Pass > &passes)
static PassType get_viewport_display_render_pass(BL::SpaceView3D &b_v3d)
#define CCL_NAMESPACE_END
PassType
Definition: kernel_types.h:347